mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06:00
cmake-gui: Restore application icon on Windows
In commit 41e223deb3 (CMake GUI: Split up into libraries, add test shim,
2020-09-14) the Windows resource source file that references the icon
was moved to CMakeGUILib, but it needs to be directly in the main
application in order to be attached properly.
This commit is contained in:
@@ -141,10 +141,6 @@ else ()
|
||||
${RC_SRCS})
|
||||
endif ()
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND SRCS CMakeSetup.rc)
|
||||
endif()
|
||||
|
||||
if(USE_LGPL)
|
||||
install(FILES ${CMake_SOURCE_DIR}/Licenses/LGPLv${USE_LGPL}.txt
|
||||
DESTINATION ${CMAKE_DATA_DIR}/Licenses
|
||||
@@ -166,7 +162,7 @@ add_executable(cmake-gui WIN32 MACOSX_BUNDLE CMakeGUIExec.cxx ${MANIFEST_FILE})
|
||||
target_link_libraries(cmake-gui CMakeGUIMainLib Qt5::Core)
|
||||
|
||||
if(WIN32)
|
||||
target_sources(CMakeGUILib INTERFACE $<TARGET_OBJECTS:CMakeVersion>)
|
||||
target_sources(CMakeGUILib INTERFACE $<TARGET_OBJECTS:CMakeVersion> CMakeSetup.rc)
|
||||
endif()
|
||||
if(APPLE)
|
||||
target_sources(CMakeGUILib INTERFACE CMakeSetup.icns)
|
||||
|
||||
Reference in New Issue
Block a user