diff options
Diffstat (limited to 'Tests/RunCMake/Configure/CopyFileABI-override.cmake')
-rw-r--r-- | Tests/RunCMake/Configure/CopyFileABI-override.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/Configure/CopyFileABI-override.cmake b/Tests/RunCMake/Configure/CopyFileABI-override.cmake new file mode 100644 index 0000000..67f6ed5 --- /dev/null +++ b/Tests/RunCMake/Configure/CopyFileABI-override.cmake @@ -0,0 +1,7 @@ +# Change the executable suffix that try_compile will use for +# COPY_FILE but not inside the test project, to verify +# we can handle envs that try and break everything +get_property(in_try_compile GLOBAL PROPERTY IN_TRY_COMPILE) +if(NOT in_try_compile) + set(CMAKE_EXECUTABLE_SUFFIX .missing) +endif() |