From 232fb6cb41a6bc9e90eb6f358d82b0843fe15824 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Sat, 18 Jun 2022 17:14:48 -0700 Subject: [PATCH] use position independent code --- quicktex/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/quicktex/CMakeLists.txt b/quicktex/CMakeLists.txt index f3837ce..6faa6c8 100644 --- a/quicktex/CMakeLists.txt +++ b/quicktex/CMakeLists.txt @@ -44,6 +44,7 @@ target_link_libraries(quicktex PUBLIC xsimd) # Set library features, like C/C++ standards target_compile_features(quicktex PUBLIC cxx_std_20 c_std_11) set_property(TARGET quicktex PROPERTY CXX_VISIBILITY_PRESET hidden) +set_property(TARGET quicktex PROPERTY POSITION_INDEPENDENT_CODE ON) # Include source root for project-relative includes target_include_directories(quicktex PUBLIC .)