summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-08-04 18:37:46 (GMT)
committerBrad King <brad.king@kitware.com>2009-08-04 18:37:46 (GMT)
commit80c947b3975825f2a9a7b1ebdc285e6b0cf6ba02 (patch)
tree85d047b0e5023e668a4804833198d4dcf767a539 /Source/cmMakefile.cxx
parentf3cd1e06f5a5fb092f249de3e1b582125d067daa (diff)
downloadCMake-80c947b3975825f2a9a7b1ebdc285e6b0cf6ba02.zip
CMake-80c947b3975825f2a9a7b1ebdc285e6b0cf6ba02.tar.gz
CMake-80c947b3975825f2a9a7b1ebdc285e6b0cf6ba02.tar.bz2
No /fast targets in try_compile project mode
The try_compile command builds the cmTryCompileExec executable using the cmTryCompileExec/fast target with Makefile generators in order to save time since dependencies are not needed. However, in project mode the command builds an entire source tree that may have dependencies. Therefore we can use the /fast target approach only in one-source mode.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 648639c..5057ef4 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -2728,6 +2728,7 @@ void cmMakefile::ExpandSourceListArguments(
int cmMakefile::TryCompile(const char *srcdir, const char *bindir,
const char *projectName, const char *targetName,
+ bool fast,
const std::vector<std::string> *cmakeArgs,
std::string *output)
{
@@ -2808,6 +2809,7 @@ int cmMakefile::TryCompile(const char *srcdir, const char *bindir,
this->LocalGenerator->GetGlobalGenerator()->TryCompile(srcdir,bindir,
projectName,
targetName,
+ fast,
output,
this);