From 1b15cd1de1d84774c5deb3c9d81fa54a9caa41e9 Mon Sep 17 00:00:00 2001 From: Jordon Brooks Date: Sun, 7 Apr 2024 01:35:50 +0100 Subject: [PATCH] enable PIC specifically for fmt --- HarmonyLinkLib/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HarmonyLinkLib/CMakeLists.txt b/HarmonyLinkLib/CMakeLists.txt index a702863..c36aa39 100644 --- a/HarmonyLinkLib/CMakeLists.txt +++ b/HarmonyLinkLib/CMakeLists.txt @@ -17,8 +17,7 @@ if(NOT fmt_POPULATED) endif() set_target_properties(fmt PROPERTIES FOLDER External) - -set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) +set_target_properties(fmt PROPERTIES POSITION_INDEPENDENT_CODE TRUE) # Find the current Git branch and the last commit timestamp find_package(Git QUIET)