Skip to content

Commit

Permalink
Compile spdlog with fpic and hide symbols for good measure
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Jan 8, 2025
1 parent d340f86 commit 20c7d97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rapids-cmake/cpm/rapids_logger.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ function(rapids_cpm_rapids_logger)
# some tweaking of argument forwarding I suspect.
CPM_ARGS EXCLUDE_FROM_ALL ON OPTIONS "BUILD_SHARED_LIBS OFF"
"SPDLOG_BUILD_SHARED OFF")
# TODO: Propagate the visibility settings to the export set as well.
set_target_properties(spdlog
PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN ON
POSITION_INDEPENDENT_CODE ON)

# Instead of passing build and install export sets to rapids_cpm_spdlog we call
# rapids_export_cpm directly for both the build and install export sets to support force
Expand Down

0 comments on commit 20c7d97

Please sign in to comment.