diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-02-22 14:12:10 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-02-22 14:12:10 (GMT) |
commit | 4d30cb309cc0cd191e89a7969599b79dea111a08 (patch) | |
tree | bf13c85d5880e0dca26c24240dbc17e267a2ec7e /Source/cmGlobalXCodeGenerator.cxx | |
parent | 832fa0e6091c5c574fc60bfd67e0cf982c3b33d8 (diff) | |
download | CMake-4d30cb309cc0cd191e89a7969599b79dea111a08.zip CMake-4d30cb309cc0cd191e89a7969599b79dea111a08.tar.gz CMake-4d30cb309cc0cd191e89a7969599b79dea111a08.tar.bz2 |
ENH: ctest now uses CMake global generator to do the build part of build-and-test
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index b2da216..484ac1e 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -76,23 +76,25 @@ void cmGlobalXCodeGenerator::EnableLanguage(std::vector<std::string>const& } //---------------------------------------------------------------------------- -int cmGlobalXCodeGenerator::TryCompile(const char *, - const char * bindir, - const char * projectName, - const char * targetName, - std::string * output, - cmMakefile*) +int cmGlobalXCodeGenerator::Build( + const char *, + const char *bindir, + const char *projectName, + const char *targetName, + std::string *output, + const char *makeCommandCSTR, + const char *, + bool ) { // now build the test - std::string makeCommand = - m_CMakeInstance->GetCacheManager()->GetCacheValue("CMAKE_MAKE_PROGRAM"); - if(makeCommand.size() == 0) + if(makeCommandCSTR == 0 || !strlen(makeCommandCSTR)) { cmSystemTools::Error( "Generator cannot find the appropriate make command."); return 1; } - makeCommand = cmSystemTools::ConvertToOutputPath(makeCommand.c_str()); + std::string makeCommand = + cmSystemTools::ConvertToOutputPath(makeCommandCSTR); std::string lowerCaseCommand = makeCommand; cmSystemTools::LowerCase(lowerCaseCommand); |