summaryrefslogtreecommitdiffstats
path: root/Source/cmTryRunCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-20 19:01:00 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-20 19:01:00 (GMT)
commit202600f95a2fe3c401e7c6ba64a3ce93e2143f88 (patch)
tree93d636f5451be1aa76e24ff3c4b8442fa8e91695 /Source/cmTryRunCommand.cxx
parent571c483ad85a3e820d5ecfa0f4d682f7f678f154 (diff)
downloadCMake-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/cmTryRunCommand.cxx')
-rw-r--r--Source/cmTryRunCommand.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx
index fc18db3..e590fdb 100644
--- a/Source/cmTryRunCommand.cxx
+++ b/Source/cmTryRunCommand.cxx
@@ -26,6 +26,11 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv)
return false;
}
+ if ( m_Makefile->GetLocal() )
+ {
+ return true;
+ }
+
// build an arg list for TryCompile and extract the runArgs
std::vector<std::string> tryCompile;
std::string runArgs;
@@ -98,7 +103,8 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv)
// set the run var
char retChar[1000];
sprintf(retChar,"%i",retVal);
- m_Makefile->AddDefinition(argv[0].c_str(), retChar);
+ m_Makefile->AddCacheDefinition(argv[0].c_str(), retChar,
+ "Result of TRY_RUN", cmCacheManager::INTERNAL);
}
}