Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/libhamcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Beatrici <git@davidebeatrici.dev>2021-05-26 02:49:15 +0300
committerDavide Beatrici <git@davidebeatrici.dev>2021-05-26 02:49:15 +0300
commitf557d6e8ed3bd1b86abb824e637e76762aa0e9dd (patch)
treee1e08905c6d61ca546b5909f74379a10cf5198a8
parent79fd4aa6a140222fb186e4966771b19f8e733075 (diff)
CMake: Enable PIC (Position Independent Code)
https://cmake.org/cmake/help/latest/prop_tgt/POSITION_INDEPENDENT_CODE.html
-rwxr-xr-xCMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7c80405..5a9a3f0 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,8 @@ include(TestBigEndian)
add_library(libhamcore STATIC)
+set_property(TARGET libhamcore PROPERTY POSITION_INDEPENDENT_CODE ON)
+
test_big_endian(BIG_ENDIAN)
if(BIG_ENDIAN)
target_compile_definitions(libhamcore PRIVATE "BYTE_ORDER_BIG_ENDIAN")