summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-03-28 13:25:45 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-03-28 13:25:45 (GMT)
commitd29004756fa314119a91821a14eef81a2ffcf40a (patch)
treecc1a241831b054e8b9cce8b35ec9b0ea0ca1419b
parent81cec38b99ce2a68a57b81fa138351f85a4536c9 (diff)
parentc41b9dc7b5d9e38ec89c5865ee7a8d6409ad4dea (diff)
downloadCMake-d29004756fa314119a91821a14eef81a2ffcf40a.zip
CMake-d29004756fa314119a91821a14eef81a2ffcf40a.tar.gz
CMake-d29004756fa314119a91821a14eef81a2ffcf40a.tar.bz2
Merge topic 'test-fix-FindGTK2-cxx11'
c41b9dc7 Tests: Fix GTK2Components.gtkmm test with sigc++ >= 2.5.1
-rw-r--r--Tests/FindGTK2/gtkmm/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/FindGTK2/gtkmm/CMakeLists.txt b/Tests/FindGTK2/gtkmm/CMakeLists.txt
index 32aafe2..eb0b7aa 100644
--- a/Tests/FindGTK2/gtkmm/CMakeLists.txt
+++ b/Tests/FindGTK2/gtkmm/CMakeLists.txt
@@ -12,3 +12,8 @@ target_link_libraries(gtkmm-target GTK2::gtkmm)
add_executable(gtkmm-all-libs WIN32 main.cpp helloworld.cpp helloworld.h)
target_link_libraries(gtkmm-all-libs ${GTK2_LIBRARIES})
target_include_directories(gtkmm-all-libs PRIVATE ${GTK2_INCLUDE_DIRS})
+
+# Linking via the library variables does not cause compile feature
+# requirements to propagate. Do it manually for purposes of this test.
+get_property(features TARGET GTK2::sigc++ PROPERTY INTERFACE_COMPILE_FEATURES)
+set_property(TARGET gtkmm-all-libs PROPERTY COMPILE_FEATURES ${features})