From dd7ab1f577b05a15fadc96d4705a4006e42fb51c Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 18 Apr 2002 16:13:15 -0400 Subject: BUG: work with spaces in the path --- Source/cmUnixMakefileGenerator.cxx | 9 ++++----- 1 file 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 = " << -- cgit v0.12