Always build static fmtlib version and fix fpic

This commit is contained in:
gabime
2023-12-23 14:03:02 +02:00
parent d0c30a6a5c
commit c6206a3191
2 changed files with 11 additions and 3 deletions

View File

@@ -127,7 +127,7 @@ if(SPDLOG_TIDY)
message(STATUS "Enabled clang-tidy")
endif()
if(SPDLOG_BUILD_PIC)
if(SPDLOG_BUILD_PIC OR SPDLOG_BUILD_SHARED)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()