summaryrefslogtreecommitdiffstats
path: root/Source/cmCoreTryCompile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-19 19:44:56 (GMT)
committerBrad King <brad.king@kitware.com>2008-03-19 19:44:56 (GMT)
commit16b32f9c9b63eb837834773b7c7e7c8c6445cc2d (patch)
tree876c1d47124cafdcc5204749806210a2a022588e /Source/cmCoreTryCompile.cxx
parent181c39d58ad4089c91f579c056ae1cdac91c08f8 (diff)
downloadCMake-16b32f9c9b63eb837834773b7c7e7c8c6445cc2d.zip
CMake-16b32f9c9b63eb837834773b7c7e7c8c6445cc2d.tar.gz
CMake-16b32f9c9b63eb837834773b7c7e7c8c6445cc2d.tar.bz2
BUG: Change generated try-compile projects to use cmake_minimum_required instead of cmake_policy to set the version now that CMP0000 requires it.
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r--Source/cmCoreTryCompile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index a24c1ee..0135db4 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -175,7 +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 %u.%u)\n",
+ fprintf(fout, "cmake_minimum_required(VERSION %u.%u)\n",
cmVersion::GetMajorVersion(), cmVersion::GetMinorVersion());
if(def)
{