summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_link_options/LINK_OPTIONS-interface-static-check.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2018-08-11 10:57:42 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2018-08-15 12:40:36 (GMT)
commit174721ecc04036f5a68982a451a96e47f9ac0c8f (patch)
treee320fa4476db23682c4ea96441b940b5fa169c97 /Tests/RunCMake/target_link_options/LINK_OPTIONS-interface-static-check.cmake
parent349f8bfb25349892fb2c4e5a9942e4bd63f86f49 (diff)
downloadCMake-174721ecc04036f5a68982a451a96e47f9ac0c8f.zip
CMake-174721ecc04036f5a68982a451a96e47f9ac0c8f.tar.gz
CMake-174721ecc04036f5a68982a451a96e47f9ac0c8f.tar.bz2
LINK_OPTIONS property: add test for static library.
Check that property INTERFACE_LINK_OPTIONS is correctly propagated from static libraries. Issue: #18251
Diffstat (limited to 'Tests/RunCMake/target_link_options/LINK_OPTIONS-interface-static-check.cmake')
-rw-r--r--Tests/RunCMake/target_link_options/LINK_OPTIONS-interface-static-check.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_link_options/LINK_OPTIONS-interface-static-check.cmake b/Tests/RunCMake/target_link_options/LINK_OPTIONS-interface-static-check.cmake
new file mode 100644
index 0000000..6c5ffdb
--- /dev/null
+++ b/Tests/RunCMake/target_link_options/LINK_OPTIONS-interface-static-check.cmake
@@ -0,0 +1,4 @@
+
+if (NOT actual_stdout MATCHES "BADFLAG_INTERFACE")
+ set (RunCMake_TEST_FAILED "Not found expected 'BADFLAG_INTERFACE'.")
+endif()