1
0
mirror of synced 2025-01-31 03:53:44 +01:00

build: Explicitly mark libfmt as -fPIC

This commit is contained in:
WerWolv 2022-08-01 14:07:03 +02:00
parent bed9f324ce
commit d8a4a94565

View File

@ -36,6 +36,7 @@ endif()
if(NOT USE_SYSTEM_FMT)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../external/fmt ${CMAKE_CURRENT_BINARY_DIR}/external/fmt EXCLUDE_FROM_ALL)
set_target_properties(fmt PROPERTIES POSITION_INDEPENDENT_CODE ON)
set(FMT_LIBRARIES fmt-header-only)
else()
find_package(fmt 8.0.0 REQUIRED)