You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
448 B
19 lines
448 B
|
|
cmake_policy(SET CMP0083 NEW)
|
|
|
|
include (CheckPIESupported)
|
|
|
|
check_pie_supported()
|
|
|
|
if (CMAKE_CXX_LINK_PIE_SUPPORTED)
|
|
file(WRITE "${PIE_SUPPORTED}" "\nset(PIE_SUPPORTED TRUE)\n")
|
|
else()
|
|
file(WRITE "${PIE_SUPPORTED}" "\nset(PIE_SUPPORTED FALSE)\n")
|
|
endif()
|
|
|
|
if (CMAKE_CXX_LINK_NO_PIE_SUPPORTED)
|
|
file(APPEND "${PIE_SUPPORTED}" "\nset(NO_PIE_SUPPORTED TRUE)\n")
|
|
else()
|
|
file(APPEND "${PIE_SUPPORTED}" "\nset(NO_PIE_SUPPORTED FALSE)\n")
|
|
endif()
|