diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2015-02-09 09:51:22 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2015-02-09 09:51:22 (GMT) |
commit | 220c427e84215b28ea1dd6de74e9dc6e81f7962e (patch) | |
tree | 2da96e1b4c22a26af6dded79d565954688c1f769 /Source | |
parent | 9bbfe76d2c899fdbb54eb92716aea7282d2f3cce (diff) | |
download | CMake-220c427e84215b28ea1dd6de74e9dc6e81f7962e.zip CMake-220c427e84215b28ea1dd6de74e9dc6e81f7962e.tar.gz CMake-220c427e84215b28ea1dd6de74e9dc6e81f7962e.tar.bz2 |
try_compile: Quote the content of CMAKE_MODULE_PATH to allow for spaces
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 2 |
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; |