try_compile: Quote the content of CMAKE_MODULE_PATH to allow for spaces

This commit is contained in:
Nils Gladitz 2015-02-09 10:51:22 +01:00
parent 9bbfe76d2c
commit 220c427e84
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
cmVersion::GetPatchVersion(), cmVersion::GetTweakVersion());
if(def)
{
fprintf(fout, "set(CMAKE_MODULE_PATH %s)\n", def);
fprintf(fout, "set(CMAKE_MODULE_PATH \"%s\")\n", def);
}
std::string projectLangs;