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:
parent
4808d9cec2
commit
1f3106c1b0
@ -529,7 +529,8 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
|
|||||||
std::string linkLibs;
|
std::string linkLibs;
|
||||||
|
|
||||||
// Flags to link an executable to shared libraries.
|
// 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)
|
if(cxx)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user