summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-08-01 19:27:26 (GMT)
committerBrad King <brad.king@kitware.com>2003-08-01 19:27:26 (GMT)
commit1f3106c1b064342b80c253847c2cd31d0cb4ddb4 (patch)
tree092be9dbc9b45e019fdd971020bcb15561074a03 /Source
parent4808d9cec202bf280bf12fc4342948ee2894cf23 (diff)
downloadCMake-1f3106c1b064342b80c253847c2cd31d0cb4ddb4.zip
CMake-1f3106c1b064342b80c253847c2cd31d0cb4ddb4.tar.gz
CMake-1f3106c1b064342b80c253847c2cd31d0cb4ddb4.tar.bz2
BUG: Adding link flags to an executable that links to shared libraries must be done for both EXECUTABLE and WIN32_EXECUTABLE targets.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
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)
{