summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/Configure/FailCopyFileABI-override.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Configure/FailCopyFileABI-override.cmake')
-rw-r--r--Tests/RunCMake/Configure/FailCopyFileABI-override.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/Configure/FailCopyFileABI-override.cmake b/Tests/RunCMake/Configure/FailCopyFileABI-override.cmake
new file mode 100644
index 000000000..c633555b6
--- /dev/null
+++ b/Tests/RunCMake/Configure/FailCopyFileABI-override.cmake
@@ -0,0 +1,6 @@
+# Change the executable suffix that try_compile will use for
+# COPY_FILE but not inside the test project. This forces failure.
+get_property(in_try_compile GLOBAL PROPERTY IN_TRY_COMPILE)
+if(NOT in_try_compile)
+ set(CMAKE_EXECUTABLE_SUFFIX .missing)
+endif()