Kaynağa Gözat

Merge topic 'windows-embed-cmake-gui-version'

45f6aa32 Windows: Embed version information into cmake-gui

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1726
Brad King 8 yıl önce
ebeveyn
işleme
e2db8531f1
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      Source/QtDialog/CMakeLists.txt

+ 4 - 0
Source/QtDialog/CMakeLists.txt

@@ -166,6 +166,10 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
 add_executable(cmake-gui WIN32 MACOSX_BUNDLE ${SRCS} ${MANIFEST_FILE})
 target_link_libraries(cmake-gui CMakeLib ${QT_QTMAIN_LIBRARY} ${CMake_QT_LIBRARIES})
 
+if(WIN32)
+  target_sources(cmake-gui PRIVATE $<TARGET_OBJECTS:CMakeVersion>)
+endif()
+
 # cmake-gui has not been updated for `include-what-you-use`.
 # Block the tool until this is done.
 set_target_properties(cmake-gui PROPERTIES