summaryrefslogtreecommitdiffstats
path: root/Source/cmNMakeMakefileGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmNMakeMakefileGenerator.cxx')
-rw-r--r--Source/cmNMakeMakefileGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmNMakeMakefileGenerator.cxx b/Source/cmNMakeMakefileGenerator.cxx
index b392b75..26a48c2 100644
--- a/Source/cmNMakeMakefileGenerator.cxx
+++ b/Source/cmNMakeMakefileGenerator.cxx
@@ -521,7 +521,9 @@ void cmNMakeMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
if (lib->first.size() == 0) continue;
if(emitted.insert(lib->first).second)
{
- std::string regexp = ".*\\" + m_StaticLibraryExtension + "$";
+ std::string regexp = ".*\\";
+ regexp += m_Makefile->GetDefinition("CMAKE_STATICLIB_SUFFIX");
+ regexp += "$";
cmRegularExpression reg(regexp.c_str());
// if it ends in .lib, then it is a full path and should
// be escaped, and does not need .lib added