BUG: Adding link flags to an executable that links to shared libraries must be done for both EXECUTABLE and WIN32_EXECUTABLE targets.

This commit is contained in:
Brad King 2003-08-01 15:27:26 -04:00
parent 4808d9cec2
commit 1f3106c1b0
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{