summaryrefslogtreecommitdiff
path: root/Source/cmGlobalNMakeMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-12-03 16:19:16 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2002-12-03 16:19:16 -0500
commite2d1104881a8f1d303d48236df76ec39bc0db93f (patch)
treec16f2d1c229ea782693334c5c83721c1dd02d21f /Source/cmGlobalNMakeMakefileGenerator.cxx
parentde316cac0502503882c04a6c4172296f2abf2877 (diff)
downloadcmake-e2d1104881a8f1d303d48236df76ec39bc0db93f.tar.gz
determine CMAKE_MAKE_PROGRAM in EnableLanguage
Diffstat (limited to 'Source/cmGlobalNMakeMakefileGenerator.cxx')
-rw-r--r--Source/cmGlobalNMakeMakefileGenerator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGlobalNMakeMakefileGenerator.cxx b/Source/cmGlobalNMakeMakefileGenerator.cxx
index ce0dbd2ca4..114876fe24 100644
--- a/Source/cmGlobalNMakeMakefileGenerator.cxx
+++ b/Source/cmGlobalNMakeMakefileGenerator.cxx
@@ -24,7 +24,10 @@ void cmGlobalNMakeMakefileGenerator::EnableLanguage(const char* l,
// pick a default
mf->AddDefinition("CMAKE_GENERATOR_CC", "cl");
mf->AddDefinition("CMAKE_GENERATOR_CXX", "cl");
-
+ std::string setMakeProgram = mf->GetDefinition("CMAKE_ROOT");
+ setMakeProgram += "/Modules/CMakeNMakeFindMake.cmake";
+ mf->ReadListFile(0, setMakeProgram.c_str());
+
this->cmGlobalUnixMakefileGenerator::EnableLanguage(l, mf);
}