From 8e69c9861593e6509660f92713bceb7d0aacf317 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 8 May 2002 17:37:03 -0400 Subject: [PATCH] BUG: Need to use CMAKE_CXX_COMPILER, not CXX, to get the C++ compiler name. --- Source/cmITKWrapTclCommand.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/cmITKWrapTclCommand.cxx b/Source/cmITKWrapTclCommand.cxx index fae71f272..abda785a2 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();