diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-04-18 20:13:15 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-04-18 20:13:15 (GMT) |
commit | dd7ab1f577b05a15fadc96d4705a4006e42fb51c (patch) | |
tree | 6d2777613590e271be3f093c49bec62a10f6dbc7 /Source/cmUnixMakefileGenerator.cxx | |
parent | aa0ac1642be0ac93da35598728057b53df3c0c56 (diff) | |
download | CMake-dd7ab1f577b05a15fadc96d4705a4006e42fb51c.zip CMake-dd7ab1f577b05a15fadc96d4705a4006e42fb51c.tar.gz CMake-dd7ab1f577b05a15fadc96d4705a4006e42fb51c.tar.bz2 |
BUG: work with spaces in the path
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index c41af24..9db92cc 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1586,15 +1586,14 @@ void cmUnixMakefileGenerator::OutputMakeVariables(std::ostream& fout) "MODULE_SUFFIX = @CMAKE_MODULE_SUFFIX@\n" "THREAD_LIBS = @CMAKE_THREAD_LIBS@\n" "RM = rm -f\n" - "\n" - "# set up the path to the rulesgen program\n" - "CMAKE_COMMAND = ${CMAKE_COMMAND}" - "\n" - "\n" "\n"; std::string replaceVars = variables; m_Makefile->ExpandVariablesInString(replaceVars); fout << replaceVars.c_str(); + fout << "CMAKE_COMMAND = " + << this->ConvertToOutputPath(m_Makefile->GetDefinition("CMAKE_COMMAND")) + << "\n"; + fout << "CMAKE_CURRENT_SOURCE = " << this->ConvertToOutputPath(m_Makefile->GetStartDirectory()) << "\n"; fout << "CMAKE_CURRENT_BINARY = " << |