forked from Mirrors/openclonk
CMakeLists.txt: stop using add_backward and qt5_use_modules
(the former adds libraries multiple times, the latter is deprecated)install-platforms
parent
1541bf62c1
commit
3eb6dcbcd3
|
@ -1186,11 +1186,11 @@ if(NOT HEADLESS_ONLY)
|
||||||
|
|
||||||
if(WITH_QT_EDITOR)
|
if(WITH_QT_EDITOR)
|
||||||
set_target_properties(openclonk PROPERTIES COMPILE_DEFINITIONS WITH_QT_EDITOR)
|
set_target_properties(openclonk PROPERTIES COMPILE_DEFINITIONS WITH_QT_EDITOR)
|
||||||
qt5_use_modules(openclonk Widgets)
|
target_link_libraries(openclonk Qt5::Widgets)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_BACKWARD)
|
if(HAVE_BACKWARD)
|
||||||
add_backward(openclonk)
|
target_link_libraries(openclonk Backward::Backward)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1224,7 +1224,7 @@ if(USE_COCOA)
|
||||||
target_link_libraries(openclonk-server "-framework Cocoa")
|
target_link_libraries(openclonk-server "-framework Cocoa")
|
||||||
endif()
|
endif()
|
||||||
if(HAVE_BACKWARD)
|
if(HAVE_BACKWARD)
|
||||||
add_backward(openclonk-server)
|
target_link_libraries(openclonk-server Backward::Backward)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(GTK3_FOUND AND GTK3_gtksourceview_FOUND AND NOT HEADLESS_ONLY)
|
if(GTK3_FOUND AND GTK3_gtksourceview_FOUND AND NOT HEADLESS_ONLY)
|
||||||
|
|
Loading…
Reference in New Issue