Commit c41b9dc7 authored by Brad King's avatar Brad King

Tests: Fix GTK2Components.gtkmm test with sigc++ >= 2.5.1

FindGTK2 adds compile features to GTK2::sigc++ so that clients will
compile as C++11 or above.  However, our test case covers using just the
library list variables instead of the imported targets.  Fix this case
by propagating the compile features manually.
parent 484d7ca0
......@@ -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.
set_property(TARGET gtkmm-all-libs PROPERTY COMPILE_FEATURES ${features})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment