diff options
author | Brad King <brad.king@kitware.com> | 2002-05-08 21:37:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-05-08 21:37:03 (GMT) |
commit | 8e69c9861593e6509660f92713bceb7d0aacf317 (patch) | |
tree | 8dacb58b71a33c8e2beb024c413d5fed4ca8adbb /Source | |
parent | a83e8170e9dd0a8862c80687cc9c780564670208 (diff) | |
download | CMake-8e69c9861593e6509660f92713bceb7d0aacf317.zip CMake-8e69c9861593e6509660f92713bceb7d0aacf317.tar.gz CMake-8e69c9861593e6509660f92713bceb7d0aacf317.tar.bz2 |
BUG: Need to use CMAKE_CXX_COMPILER, not CXX, to get the C++ compiler name.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmITKWrapTclCommand.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmITKWrapTclCommand.cxx b/Source/cmITKWrapTclCommand.cxx index fae71f2..abda785 100644 --- a/Source/cmITKWrapTclCommand.cxx +++ b/Source/cmITKWrapTclCommand.cxx @@ -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); - commandArgs.push_back(tmp); + if(tmp.length() > 0) + { + commandArgs.push_back("--gccxml-compiler"); + commandArgs.push_back(tmp); + } #endif tmp = "-I"; tmp += m_Makefile->GetStartDirectory(); |