mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-16 03:44:56 +02:00
CMakeLists.txt: Compile position independent code.
This commit is contained in:
parent
71cb07e6e7
commit
9ad3d47d95
1 changed files with 6 additions and 0 deletions
|
|
@ -92,6 +92,12 @@ add_link_options(
|
|||
"$<$<CONFIG:Release>:$<$<COMPILE_LANG_AND_ID:CXX,GNU>:-s>>"
|
||||
)
|
||||
|
||||
include(CheckPIESupported)
|
||||
check_pie_supported()
|
||||
#cmake_policy(SET CMP0083 NEW)
|
||||
|
||||
set( CMAKE_POSITION_INDEPENDENT_CODE TRUE )
|
||||
|
||||
# Project config file
|
||||
configure_file(config.hpp.in "${PROJECT_BINARY_DIR}/config.hpp" @ONLY)
|
||||
include_directories(${PROJECT_BINARY_DIR})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue