diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-21 03:11:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-22 13:24:48 (GMT) |
commit | 89a1e1c1be9ea7519b0c52d30087d95062a091d1 (patch) | |
tree | 5e07c1b464395748824753d51a721d2e7a0d85fd /Source/QtDialog | |
parent | 3b32a1a8208812dde24f5f6be30e7f9361f01cab (diff) | |
download | CMake-89a1e1c1be9ea7519b0c52d30087d95062a091d1.zip CMake-89a1e1c1be9ea7519b0c52d30087d95062a091d1.tar.gz CMake-89a1e1c1be9ea7519b0c52d30087d95062a091d1.tar.bz2 |
Build: Link w/ `OBJECT` library is OK since 3.12
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt index 009154c..2766db8 100644 --- a/Source/QtDialog/CMakeLists.txt +++ b/Source/QtDialog/CMakeLists.txt @@ -250,14 +250,19 @@ if(USE_LGPL) endif() add_library(CMakeGUIMainLib STATIC CMakeSetup.cxx) -target_link_libraries(CMakeGUIMainLib PUBLIC CMakeGUILib) +target_link_libraries( + CMakeGUIMainLib + PUBLIC + CMakeGUILib + CMakeGUIQRCLib + $<TARGET_NAME_IF_EXISTS:CMakeVersion> + ) add_executable(cmake-gui WIN32 MACOSX_BUNDLE CMakeGUIExec.cxx) target_link_libraries(cmake-gui CMakeGUIMainLib ManifestLib Qt${INSTALLED_QT_VERSION}::Core) -target_sources(CMakeGUIMainLib INTERFACE $<TARGET_OBJECTS:CMakeGUIQRCLib>) if(WIN32) - target_sources(CMakeGUIMainLib INTERFACE $<TARGET_OBJECTS:CMakeVersion> CMakeSetup.rc) + target_sources(CMakeGUIMainLib INTERFACE CMakeSetup.rc) endif() if(APPLE) target_sources(CMakeGUIMainLib INTERFACE CMakeSetup.icns) |