From 16b32f9c9b63eb837834773b7c7e7c8c6445cc2d Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 19 Mar 2008 15:44:56 -0400 Subject: [PATCH] BUG: Change generated try-compile projects to use cmake_minimum_required instead of cmake_policy to set the version now that CMP0000 requires it. --- Source/cmCoreTryCompile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index a24c1eeb7..0135db49c 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -175,7 +175,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector 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) {