mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user