diff options
author | Brad King <brad.king@kitware.com> | 2006-06-01 19:51:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-06-01 19:51:24 (GMT) |
commit | 87d4d0e0394f30bb320b3939b1852a7cae2177cb (patch) | |
tree | b513f5cdebbefb99b4215ef5934b9ecd06720f57 /Source/cmGlobalGenerator.cxx | |
parent | bfb0ec58e819ae4d168337c5aadf73764599adc8 (diff) | |
download | CMake-87d4d0e0394f30bb320b3939b1852a7cae2177cb.zip CMake-87d4d0e0394f30bb320b3939b1852a7cae2177cb.tar.gz CMake-87d4d0e0394f30bb320b3939b1852a7cae2177cb.tar.bz2 |
BUG: cmGlobalGenerator::Build should not always use the /fast target name because dependency checking is often required. It now takes an argument specifying whether to use the /fast target name, and the argument is currently only true for try-compiles.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index cc02b14..c04ad73 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -770,13 +770,13 @@ int cmGlobalGenerator::TryCompile(const char *srcdir, const char *bindir, const char* config = mf->GetDefinition("CMAKE_TRY_COMPILE_CONFIGURATION"); return this->Build(srcdir,bindir,projectName, newTarget.c_str(), - output,makeCommand.c_str(),config,false); + output,makeCommand.c_str(),config,false,true); } std::string cmGlobalGenerator ::GenerateBuildCommand(const char* makeProgram, const char *projectName, const char* additionalOptions, const char *targetName, - const char* config, bool ignoreErrors) + const char* config, bool ignoreErrors, bool) { // Project name and config are not used yet. (void)projectName; @@ -814,7 +814,7 @@ int cmGlobalGenerator::Build( std::string *output, const char *makeCommandCSTR, const char *config, - bool clean) + bool clean, bool fast) { *output += "\nTesting TryCompileWithoutMakefile\n"; @@ -834,7 +834,7 @@ int cmGlobalGenerator::Build( { std::string cleanCommand = this->GenerateBuildCommand(makeCommandCSTR, projectName, - 0, "clean", config, false); + 0, "clean", config, false, fast); if (!cmSystemTools::RunSingleCommand(cleanCommand.c_str(), output, &retVal, 0, false, timeout)) { @@ -854,7 +854,7 @@ int cmGlobalGenerator::Build( // now build std::string makeCommand = this->GenerateBuildCommand(makeCommandCSTR, projectName, - 0, target, config, false); + 0, target, config, false, fast); if (!cmSystemTools::RunSingleCommand(makeCommand.c_str(), output, &retVal, 0, false, timeout)) |