summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmNMakeMakefileGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNMakeMakefileGenerator.cxx b/Source/cmNMakeMakefileGenerator.cxx
index 53828f8..1097a55 100644
--- a/Source/cmNMakeMakefileGenerator.cxx
+++ b/Source/cmNMakeMakefileGenerator.cxx
@@ -529,7 +529,7 @@ void cmNMakeMakefileGenerator::OutputExecutableRule(std::ostream& fout,
command += " " + output_executable_file_flag +
this->ConvertToOutputPath(path.c_str());
- command += " $(CMAKE_C_LINK_EXECUTABLE_FLAG) ";
+ command += " $(CMAKE_C_LINK_EXECUTABLE_FLAG) $(CMAKE_LINKER_FLAGS) ";
if(t.GetType() == cmTarget::WIN32_EXECUTABLE)
{
command += " /subsystem:windows ";