summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_link_options/LINK_OPTIONS-shared-check.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/add_link_options/LINK_OPTIONS-shared-check.cmake')
-rw-r--r--Tests/RunCMake/add_link_options/LINK_OPTIONS-shared-check.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_link_options/LINK_OPTIONS-shared-check.cmake b/Tests/RunCMake/add_link_options/LINK_OPTIONS-shared-check.cmake
new file mode 100644
index 0000000..ecba17e
--- /dev/null
+++ b/Tests/RunCMake/add_link_options/LINK_OPTIONS-shared-check.cmake
@@ -0,0 +1,10 @@
+
+if (NOT actual_stdout MATCHES "BADFLAG_SHARED_RELEASE")
+ set (RunCMake_TEST_FAILED "Not found expected 'BADFLAG_SHARED_RELEASE'.")
+endif()
+if (actual_stdout MATCHES "BADFLAG_(MODULE|EXECUTABLE)_RELEASE")
+ if (RunCMake_TEST_FAILED)
+ string (APPEND RunCMake_TEST_FAILED "\n")
+ endif()
+ string (APPEND RunCMake_TEST_FAILED "Found unexpected 'BADFLAG_(MODULE|EXECUTABLE)_RELEASE'.")
+endif()