summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-12-03 21:19:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-12-03 21:19:16 (GMT)
commite2d1104881a8f1d303d48236df76ec39bc0db93f (patch)
treec16f2d1c229ea782693334c5c83721c1dd02d21f /Source/cmGlobalUnixMakefileGenerator.cxx
parentde316cac0502503882c04a6c4172296f2abf2877 (diff)
downloadCMake-e2d1104881a8f1d303d48236df76ec39bc0db93f.zip
CMake-e2d1104881a8f1d303d48236df76ec39bc0db93f.tar.gz
CMake-e2d1104881a8f1d303d48236df76ec39bc0db93f.tar.bz2
determine CMAKE_MAKE_PROGRAM in EnableLanguage
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator.cxx b/Source/cmGlobalUnixMakefileGenerator.cxx
index d6082c7..fbe0eef 100644
--- a/Source/cmGlobalUnixMakefileGenerator.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator.cxx
@@ -23,14 +23,19 @@
void cmGlobalUnixMakefileGenerator::EnableLanguage(const char* lang,
cmMakefile *mf)
{
+ if(!mf->GetDefinition("CMAKE_MAKE_PROGRAM"))
+ {
+ std::string setMakeProgram = mf->GetDefinition("CMAKE_ROOT");
+ setMakeProgram += "/Modules/CMakeUnixFindMake.cmake";
+ mf->ReadListFile(0, setMakeProgram.c_str());
+ }
+
bool isLocal = m_CMakeInstance->GetLocal();
// if no lang specified use CXX
if(!lang )
{
lang = "CXX";
}
- //std::string root
- // = cmSystemTools::ConvertToOutputPath(mf->GetDefinition("CMAKE_ROOT"));
std::string root = mf->GetDefinition("CMAKE_ROOT");
std::string rootBin = mf->GetHomeOutputDirectory();
if(m_ConfiguredFilesPath.size())