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";
|
std::string tmp = tclFile+".cxx";
|
||||||
commandArgs.push_back(tmp);
|
commandArgs.push_back(tmp);
|
||||||
#if !defined(_WIN32) || defined(__CYGWIN__)
|
#if !defined(_WIN32) || defined(__CYGWIN__)
|
||||||
commandArgs.push_back("--gccxml-compiler");
|
tmp = "${CMAKE_CXX_COMPILER}";
|
||||||
tmp = "${CXX}";
|
|
||||||
m_Makefile->ExpandVariablesInString(tmp);
|
m_Makefile->ExpandVariablesInString(tmp);
|
||||||
|
if(tmp.length() > 0)
|
||||||
|
{
|
||||||
|
commandArgs.push_back("--gccxml-compiler");
|
||||||
commandArgs.push_back(tmp);
|
commandArgs.push_back(tmp);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
tmp = "-I";
|
tmp = "-I";
|
||||||
tmp += m_Makefile->GetStartDirectory();
|
tmp += m_Makefile->GetStartDirectory();
|
||||||
|
|
Loading…
Reference in New Issue