summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-05-08 21:37:03 (GMT)
committerBrad King <brad.king@kitware.com>2002-05-08 21:37:03 (GMT)
commit8e69c9861593e6509660f92713bceb7d0aacf317 (patch)
tree8dacb58b71a33c8e2beb024c413d5fed4ca8adbb /Source
parenta83e8170e9dd0a8862c80687cc9c780564670208 (diff)
downloadCMake-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.cxx9
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();