mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 03:29:18 -05:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user