Commit 219166e2 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Use position independent code when building statically.

parent 63ad363f
1 merge request!22Use position independent code when building statically.
Showing with 1 addition and 0 deletions
......@@ -84,6 +84,7 @@ if(ENABLE_STATIC)
add_library(decaf-static STATIC ${DECAF_HEADER_FILES} ${DECAF_SOURCE_FILES_C} ${DECAF_SOURCE_FILES_CXX} $<TARGET_OBJECTS:decaf-p25519> $<TARGET_OBJECTS:decaf-p448> $<TARGET_OBJECTS:decaf-curve25519> $<TARGET_OBJECTS:decaf-curve448>)
add_dependencies(decaf-static decaf-generated-code)
set_target_properties(decaf-static PROPERTIES OUTPUT_NAME decaf)
set_target_properties(decaf-static PROPERTIES POSITION_INDEPENDENT_CODE True)
target_include_directories(decaf-static INTERFACE $<BUILD_INTERFACE:${GSOURCE_PATH}/include> $<INSTALL_INTERFACE:include/decaf>)
target_link_libraries(decaf-static INTERFACE)
endif()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment