diff options
author | Brad King <brad.king@kitware.com> | 2003-08-01 19:27:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-08-01 19:27:26 (GMT) |
commit | 1f3106c1b064342b80c253847c2cd31d0cb4ddb4 (patch) | |
tree | 092be9dbc9b45e019fdd971020bcb15561074a03 /Source | |
parent | 4808d9cec202bf280bf12fc4342948ee2894cf23 (diff) | |
download | CMake-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.cxx | 3 |
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) { |