diff options
author | Brad King <brad.king@kitware.com> | 2022-11-09 21:54:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-11-09 21:54:46 (GMT) |
commit | ec76a9c22fc11edd22d6fe65fc75ab9609322c88 (patch) | |
tree | 2ff6c86e0a1ebda6011836fa214d0f4f76e55122 /Source/QtDialog | |
parent | e242fa19caa152e7c317fde7f6eb79fb04451982 (diff) | |
download | CMake-ec76a9c22fc11edd22d6fe65fc75ab9609322c88.zip CMake-ec76a9c22fc11edd22d6fe65fc75ab9609322c88.tar.gz CMake-ec76a9c22fc11edd22d6fe65fc75ab9609322c88.tar.bz2 |
cmake-gui: Restore embedded version information in Windows binary
Refactoring in commit 89a1e1c1be (Build: Link w/ `OBJECT` library is OK
since 3.12, 2022-08-21, v3.25.0-rc1~97^2~19) dropped the `.res` object
containing this information from the `cmake-gui` link line. Restore it.
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 a41b237..c90b7ee 100644 --- a/Source/QtDialog/CMakeLists.txt +++ b/Source/QtDialog/CMakeLists.txt @@ -254,12 +254,17 @@ 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_link_libraries(cmake-gui + PRIVATE + CMakeGUIMainLib + CMakeGUIQRCLib + $<TARGET_NAME_IF_EXISTS:CMakeVersion> + ManifestLib + Qt${INSTALLED_QT_VERSION}::Core + ) if(WIN32) target_sources(CMakeGUIMainLib INTERFACE CMakeSetup.rc) |