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:
Diffstat (limited to 'CMakeLists.txt')
-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")