diff options
author | Sergey Shatunov <me@prok.pw> | 2018-06-01 21:20:33 +0700 |
---|---|---|
committer | Sergey Shatunov <me@prok.pw> | 2018-06-02 17:22:43 +0700 |
commit | 4d68c1b509cd289e9f02cbf258e69f2539349029 (patch) | |
tree | 75ebfaae1e8c6b32babed0f89b18a5c62b06d503 /api | |
parent | f0ff2db4e1a81bc941ea8b6ce43f7fb63d34547a (diff) | |
download | MultiMC-4d68c1b509cd289e9f02cbf258e69f2539349029.tar MultiMC-4d68c1b509cd289e9f02cbf258e69f2539349029.tar.gz MultiMC-4d68c1b509cd289e9f02cbf258e69f2539349029.tar.lz MultiMC-4d68c1b509cd289e9f02cbf258e69f2539349029.tar.xz MultiMC-4d68c1b509cd289e9f02cbf258e69f2539349029.zip |
GH-2291 Fix build with Qt 5.11+
Diffstat (limited to 'api')
-rw-r--r-- | api/gui/CMakeLists.txt | 3 | ||||
-rw-r--r-- | api/logic/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/api/gui/CMakeLists.txt b/api/gui/CMakeLists.txt index deae735f..9a6ede25 100644 --- a/api/gui/CMakeLists.txt +++ b/api/gui/CMakeLists.txt @@ -21,8 +21,7 @@ set_target_properties(MultiMC_gui PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBI generate_export_header(MultiMC_gui) # Link -target_link_libraries(MultiMC_gui MultiMC_iconfix MultiMC_logic) -qt5_use_modules(MultiMC_gui Gui) +target_link_libraries(MultiMC_gui MultiMC_iconfix MultiMC_logic Qt5::Gui) # Mark and export headers target_include_directories(MultiMC_gui PUBLIC "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}") diff --git a/api/logic/CMakeLists.txt b/api/logic/CMakeLists.txt index d6b61d23..a320ab8b 100644 --- a/api/logic/CMakeLists.txt +++ b/api/logic/CMakeLists.txt @@ -476,7 +476,7 @@ generate_export_header(MultiMC_logic) # Link target_link_libraries(MultiMC_logic xz-embedded MultiMC_unpack200 systeminfo MultiMC_quazip MultiMC_classparser ${NBT_NAME} ${ZLIB_LIBRARIES}) -qt5_use_modules(MultiMC_logic Core Xml Network Concurrent) +target_link_libraries(MultiMC_logic Qt5::Core Qt5::Xml Qt5::Network Qt5::Concurrent) # Mark and export headers target_include_directories(MultiMC_logic PUBLIC "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}" PRIVATE "${ZLIB_INCLUDE_DIRS}") |