From f66584c14739aedb2a5102bb6bf7d9d23d7868ef Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Sat, 18 Jan 2025 05:05:49 +0000 Subject: [PATCH] Ensure spdlog is built with fPIC --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 81e18dd..b9d1173 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,6 +78,7 @@ if(RAPIDS_LOGGER_HIDE_ALL_SPDLOG_SYMBOLS) FMT_OPTION ${RAPIDS_LOGGER_FMT_OPTION} CPM_ARGS OPTIONS "BUILD_SHARED_LIBS OFF" "SPDLOG_BUILD_SHARED OFF" ) + set_target_properties(spdlog PROPERTIES CXX_VISIBILITY_PRESET hidden POSITION_INDEPENDENT_CODE ON) target_link_options(rapids_logger PRIVATE "LINKER:--exclude-libs,libspdlog") else() rapids_cpm_spdlog(