diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-20 19:01:00 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-20 19:01:00 (GMT) |
commit | 202600f95a2fe3c401e7c6ba64a3ce93e2143f88 (patch) | |
tree | 93d636f5451be1aa76e24ff3c4b8442fa8e91695 /Source/cmTryCompileCommand.cxx | |
parent | 571c483ad85a3e820d5ecfa0f4d682f7f678f154 (diff) | |
download | CMake-202600f95a2fe3c401e7c6ba64a3ce93e2143f88.zip CMake-202600f95a2fe3c401e7c6ba64a3ce93e2143f88.tar.gz CMake-202600f95a2fe3c401e7c6ba64a3ce93e2143f88.tar.bz2 |
Add GetLocal on cmMakefile and on local builds do not perform tests
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index cf54a09..4351ffb 100644 --- a/Source/cmTryCompileCommand.cxx +++ b/Source/cmTryCompileCommand.cxx @@ -94,7 +94,7 @@ int cmTryCompileCommand::CoreTryCompileCode( break; } } - + // compute the binary dir when TRY_COMPILE is called with a src file // signature if (srcFileSignature) @@ -170,7 +170,9 @@ int cmTryCompileCommand::CoreTryCompileCode( projectName, targetName, &cmakeFlags, &output); // set the result var to the return value to indicate success or failure - mf->AddDefinition(argv[0].c_str(), (res == 0 ? "TRUE" : "FALSE")); + mf->AddCacheDefinition(argv[0].c_str(), (res == 0 ? "TRUE" : "FALSE"), + "Result of TRY_COMPILE", + cmCacheManager::INTERNAL); if ( outputVariable.size() > 0 ) { @@ -208,6 +210,11 @@ bool cmTryCompileCommand::InitialPass(std::vector<std::string> const& argv) return false; } + if ( m_Makefile->GetLocal() ) + { + return true; + } + cmTryCompileCommand::CoreTryCompileCode(m_Makefile,argv,true); return true; |