summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_link_options/LINK_OPTIONS-static-check.cmake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2018-08-09 14:28:13 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-09 16:52:44 (GMT)
commit9561d42f95b519386c5f8f84d8ae59a6b8deb429 (patch)
tree4ee5e3968534b8dd8b87ced00eaf58d6d83c0827 /Tests/RunCMake/target_link_options/LINK_OPTIONS-static-check.cmake
parent24f226e2d3ee53ea6155d3aaefd80c3b5dfe6924 (diff)
downloadCMake-9561d42f95b519386c5f8f84d8ae59a6b8deb429.zip
CMake-9561d42f95b519386c5f8f84d8ae59a6b8deb429.tar.gz
CMake-9561d42f95b519386c5f8f84d8ae59a6b8deb429.tar.bz2
target_link_options: Add test to verify static library behavior
Issue: #18251
Diffstat (limited to 'Tests/RunCMake/target_link_options/LINK_OPTIONS-static-check.cmake')
-rw-r--r--Tests/RunCMake/target_link_options/LINK_OPTIONS-static-check.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_link_options/LINK_OPTIONS-static-check.cmake b/Tests/RunCMake/target_link_options/LINK_OPTIONS-static-check.cmake
new file mode 100644
index 0000000..b68e451
--- /dev/null
+++ b/Tests/RunCMake/target_link_options/LINK_OPTIONS-static-check.cmake
@@ -0,0 +1,7 @@
+
+if (actual_stdout MATCHES "BADFLAG_RELEASE")
+ set (RunCMake_TEST_FAILED "Found 'BADFLAG_RELEASE' which was not expected.")
+endif()
+if (actual_stdout MATCHES "SHELL:")
+ string (APPEND RunCMake_TEST_FAILED "\nFound unexpected prefix 'SHELL:'.")
+endif()