16 lines
747 B
Diff
16 lines
747 B
Diff
--- src/corelib/Qt5CoreConfigExtras.cmake.in.orig 2014-11-09 00:54:20.852201500 +0000
|
|
+++ src/corelib/Qt5CoreConfigExtras.cmake.in 2014-11-09 00:55:52.437439900 +0000
|
|
@@ -165,3 +165,12 @@
|
|
set(_Qt5CTestMacros \"${_Qt5CoreConfigDir}/Qt5CTestMacros.cmake\")
|
|
|
|
_qt5_Core_check_file_exists(${_Qt5CTestMacros})
|
|
+
|
|
+get_target_property(_libType Qt5::Core TYPE)
|
|
+if(_libType STREQUAL \"STATIC_LIBRARY\" AND WIN32)
|
|
+ set(_isExe $<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>)
|
|
+ # INTERFACE_LINK_LIBRARIES is used to pass a linker flag (-static)
|
|
+ # and a library (ws2_32)
|
|
+ set_target_properties(Qt5::Core PROPERTIES \"INTERFACE_LINK_LIBRARIES\" \"$<${_isExe}:-static;ws2_32>\")
|
|
+ unset(_isExe)
|
|
+endif()
|