Fix QWindowsIntegrationPlugin reference

This commit is contained in:
Luke Street 2021-03-13 11:57:15 -05:00
parent df49ebae22
commit e34a844537
1 changed files with 3 additions and 2 deletions

View File

@ -105,8 +105,9 @@ else ()
Qt5::Network Qt5::Network
Qt5::Widgets Qt5::Widgets
Qt5::Xml) Qt5::Xml)
if (WIN32) # Check for static linking
list(APPEND Qt_LIBS Qt5::WindowsIntegrationPlugin) if (WIN32 AND NOT "$<TARGET_PROPERTY:hecl-gui,MSVC_RUNTIME_LIBRARY>" MATCHES "DLL$")
list(APPEND Qt_LIBS Qt5::QWindowsIntegrationPlugin)
endif () endif ()
endif () endif ()
target_link_libraries(hecl-gui PRIVATE target_link_libraries(hecl-gui PRIVATE