cmake/Tests/RunCMake/PositionIndependentCode/PIE-pie_off-check.cmake

8 lines
235 B
CMake
Raw Normal View History

2019-11-11 23:01:05 +01:00
include ("${RunCMake_TEST_BINARY_DIR}/${RunCMake_TEST_CONFIG}/PIE_config.cmake")
check_executable ("${pie_off}" status)
if (NOT status STREQUAL "NO_PIE")
set (RunCMake_TEST_FAILED "Executable is NOT 'no PIE' (${status}).")
endif()