summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-06 20:20:39 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-06 20:20:39 (GMT)
commitff445e3fd0c6164b7fe97fbee8a9c01c9090f15a (patch)
tree420e46d481696a76b5fa2cb240e1a26d4c8dd55f /Source
parent5588ed47fce7071b568914ceb0c4cfedb35195b7 (diff)
downloadCMake-ff445e3fd0c6164b7fe97fbee8a9c01c9090f15a.zip
CMake-ff445e3fd0c6164b7fe97fbee8a9c01c9090f15a.tar.gz
CMake-ff445e3fd0c6164b7fe97fbee8a9c01c9090f15a.tar.bz2
ENH: make sure policy is set in generated cmakelist files
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCoreTryCompile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index 77aab0d..7a9a6cd 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -175,6 +175,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
const char* lang =(this->Makefile->GetCMakeInstance()->GetGlobalGenerator()
->GetLanguageFromExtension(ext.c_str()));
const char* def = this->Makefile->GetDefinition("CMAKE_MODULE_PATH");
+ fprintf(fout, "cmake_policy(VERSION 2.6)\n");
if(def)
{
fprintf(fout, "SET(CMAKE_MODULE_PATH %s)\n", def);