summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-31 14:22:34 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-01-31 14:22:43 (GMT)
commite2db8531f1ff1f0ea798023b58517f64a18c995a (patch)
treee814afc688d246e9900392a8a099e9ffa6a5670c /Source
parent4499cc8bb65e217e1cb2959452ed391af82e757b (diff)
parent45f6aa3235691dbbcedae082c2513cdf13ec2fd1 (diff)
downloadCMake-e2db8531f1ff1f0ea798023b58517f64a18c995a.zip
CMake-e2db8531f1ff1f0ea798023b58517f64a18c995a.tar.gz
CMake-e2db8531f1ff1f0ea798023b58517f64a18c995a.tar.bz2
Merge topic 'windows-embed-cmake-gui-version'
45f6aa32 Windows: Embed version information into cmake-gui Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1726
Diffstat (limited to 'Source')
-rw-r--r--Source/QtDialog/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt
index 06d13ba..330b747 100644
--- a/Source/QtDialog/CMakeLists.txt
+++ b/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