Commit ff445e3f authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: make sure policy is set in generated cmakelist files

parent 5588ed47
......@@ -175,6 +175,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
const char* lang =(this->Makefile->GetCMakeInstance()->GetGlobalGenerator()
const char* def = this->Makefile->GetDefinition("CMAKE_MODULE_PATH");
fprintf(fout, "cmake_policy(VERSION 2.6)\n");
fprintf(fout, "SET(CMAKE_MODULE_PATH %s)\n", def);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment