BUG: Need to use CMAKE_CXX_COMPILER, not CXX, to get the C++ compiler name.
This commit is contained in:
parent
a83e8170e9
commit
8e69c98615
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue