cmake/Tests/RunCMake/Configure/CopyFileABI-override.cmake

8 lines
298 B
CMake
Raw Normal View History

2013-11-03 12:27:13 +02:00
# Change the executable suffix that try_compile will use for
2022-11-16 20:14:03 +01:00
# COPY_FILE but not inside the test project, to verify
# we can handle envs that try and break everything
2013-11-03 12:27:13 +02:00
get_property(in_try_compile GLOBAL PROPERTY IN_TRY_COMPILE)
if(NOT in_try_compile)
set(CMAKE_EXECUTABLE_SUFFIX .missing)
endif()