summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-10 14:37:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-02-10 14:37:53 (GMT)
commit1d6f4b6fcc04620fd5f8e090381e8330dc2a4b23 (patch)
treee18b9723562f76af726368c74c6e8f9f5c5d32b7
parentdb9a2e8966256d50efcd593a20ed8a2b8b9cc05e (diff)
parent220c427e84215b28ea1dd6de74e9dc6e81f7962e (diff)
downloadCMake-1d6f4b6fcc04620fd5f8e090381e8330dc2a4b23.zip
CMake-1d6f4b6fcc04620fd5f8e090381e8330dc2a4b23.tar.gz
CMake-1d6f4b6fcc04620fd5f8e090381e8330dc2a4b23.tar.bz2
Merge topic 'try_compile-quote-module-path'
220c427e try_compile: Quote the content of CMAKE_MODULE_PATH to allow for spaces
-rw-r--r--Source/cmCoreTryCompile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index 5b5d6b6..c414553 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -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;