From e3830ccf3686f31e58ebeca8a6aea7648aee51f1 Mon Sep 17 00:00:00 2001 From: Jordon Brooks Date: Sun, 7 Apr 2024 01:34:16 +0100 Subject: [PATCH] Enable PIC --- HarmonyLinkLib/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HarmonyLinkLib/CMakeLists.txt b/HarmonyLinkLib/CMakeLists.txt index e551e6c..a702863 100644 --- a/HarmonyLinkLib/CMakeLists.txt +++ b/HarmonyLinkLib/CMakeLists.txt @@ -18,6 +18,8 @@ endif() set_target_properties(fmt PROPERTIES FOLDER External) +set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) + # Find the current Git branch and the last commit timestamp find_package(Git QUIET) if(GIT_FOUND)