From 1f3106c1b064342b80c253847c2cd31d0cb4ddb4 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 1 Aug 2003 15:27:26 -0400 Subject: BUG: Adding link flags to an executable that links to shared libraries must be done for both EXECUTABLE and WIN32_EXECUTABLE targets. --- Source/cmLocalUnixMakefileGenerator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index c556f67..64b5357 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -529,7 +529,8 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout, std::string linkLibs; // Flags to link an executable to shared libraries. - if( tgt.GetType() == cmTarget::EXECUTABLE) + if( tgt.GetType() == cmTarget::EXECUTABLE || + tgt.GetType() == cmTarget::WIN32_EXECUTABLE ) { if(cxx) { -- cgit v0.12