mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 05:38:24 -05:00
c4b4d8b3a6
Fixes: #14983, #16561
21 lines
658 B
CMake
21 lines
658 B
CMake
|
|
include ("${RunCMake_TEST_BINARY_DIR}/${RunCMake_TEST_CONFIG}/CMP0083_config.cmake")
|
|
|
|
|
|
# retrieve default type of executable
|
|
check_executable ("${cmp0083_ref}" ref)
|
|
|
|
# POSITION_INDEPENDENT_CODE must not have influence on executable
|
|
# pie and no_pie executable must have same type as reference
|
|
check_executable ("${cmp0083_old_pie}" old_pie)
|
|
if (NOT old_pie STREQUAL ref)
|
|
set (RunCMake_TEST_FAILED "CMP0083(OLD) do not produce expected executable.")
|
|
return()
|
|
endif()
|
|
|
|
check_executable ("${cmp0083_old_no_pie}" old_no_pie)
|
|
if (NOT old_no_pie STREQUAL ref)
|
|
set (RunCMake_TEST_FAILED "CMP0083(OLD) do not produce expected executable.")
|
|
return()
|
|
endif()
|