BUG: Need to use CMAKE_CXX_COMPILER, not CXX, to get the C++ compiler name.

This commit is contained in:
Brad King 2002-05-08 17:37:03 -04:00
parent a83e8170e9
commit 8e69c98615
1 changed files with 6 additions and 3 deletions

View File

@ -77,10 +77,13 @@ bool cmITKWrapTclCommand::CreateCableRule(const char* configFile)
std::string tmp = tclFile+".cxx";
commandArgs.push_back(tmp);
#if !defined(_WIN32) || defined(__CYGWIN__)
commandArgs.push_back("--gccxml-compiler");
tmp = "${CXX}";
tmp = "${CMAKE_CXX_COMPILER}";
m_Makefile->ExpandVariablesInString(tmp);
if(tmp.length() > 0)
{
commandArgs.push_back("--gccxml-compiler");
commandArgs.push_back(tmp);
}
#endif
tmp = "-I";
tmp += m_Makefile->GetStartDirectory();