summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-06-01 19:51:24 (GMT)
committerBrad King <brad.king@kitware.com>2006-06-01 19:51:24 (GMT)
commit87d4d0e0394f30bb320b3939b1852a7cae2177cb (patch)
treeb513f5cdebbefb99b4215ef5934b9ecd06720f57 /Source/cmGlobalGenerator.cxx
parentbfb0ec58e819ae4d168337c5aadf73764599adc8 (diff)
downloadCMake-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.cxx10
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))