diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-17 14:40:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-17 14:40:57 (GMT) |
commit | 267fd538d837d40e7ed865326899e0105265a515 (patch) | |
tree | 05c3dd5fe631f0cd4e51038feea95a35d46eeddd /Source/cmGlobalXCodeGenerator.cxx | |
parent | 5c48eab7a8d18c787111a387359716d59b70598a (diff) | |
download | CMake-267fd538d837d40e7ed865326899e0105265a515.zip CMake-267fd538d837d40e7ed865326899e0105265a515.tar.gz CMake-267fd538d837d40e7ed865326899e0105265a515.tar.bz2 |
ENH: fix build issue with config type not being specified by ctest
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index ee630bc..8c60b9b 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -187,6 +187,11 @@ std::string cmGlobalXCodeGenerator makeCommand += " build"; } makeCommand += " -target "; + // if it is a null string for config don't use it + if(config && *config == 0) + { + config = 0; + } if (targetName && strlen(targetName)) { makeCommand += targetName; @@ -209,6 +214,7 @@ std::string cmGlobalXCodeGenerator makeCommand += " "; makeCommand += additionalOptions; } + std::cerr << "**** build command " << makeCommand.c_str() << "\n"; return makeCommand; } |