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::Widgets
Qt5::Xml)
if (WIN32)
list(APPEND Qt_LIBS Qt5::WindowsIntegrationPlugin)
# Check for static linking
if (WIN32 AND NOT "$<TARGET_PROPERTY:hecl-gui,MSVC_RUNTIME_LIBRARY>" MATCHES "DLL$")
list(APPEND Qt_LIBS Qt5::QWindowsIntegrationPlugin)
endif ()
endif ()
target_link_libraries(hecl-gui PRIVATE