summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2024-01-04 13:41:11 +0800
committerXusheng <xusheng@vector35.com>2024-01-04 13:41:11 +0800
commite9e5c3e3568351e99c5034e49ae21f0b8d12a4c2 (patch)
tree07ec9b746469962f9b732fffffab6932d8cdc143 /CMakeLists.txt
parent7e566f1a998ad46509815e601e7aa0499a0ced8b (diff)
Build fmt library as PIC. Fix https://github.com/Vector35/binaryninja-api/issues/4859
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7f4c62e1..9d48aa8f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,6 +36,7 @@ target_link_directories(binaryninjaapi PUBLIC ${BinaryNinjaCore_LIBRARY_DIRS})
target_compile_definitions(binaryninjaapi PUBLIC ${BinaryNinjaCore_DEFINITIONS})
add_subdirectory(vendor/fmt)
+set_target_properties(fmt PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_link_libraries(binaryninjaapi PUBLIC fmt::fmt)
set_target_properties(binaryninjaapi PROPERTIES