mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-28 00:10:21 +08:00
remove SPDLOG_BUILD_PIC cmake option
This commit is contained in:
parent
ea66477ac0
commit
ffbdc8f610
@ -63,8 +63,6 @@ option(SPDLOG_BUILD_ALL "Build all artifacts" OFF)
|
||||
# build shared option
|
||||
option(SPDLOG_BUILD_SHARED "Build shared library" OFF)
|
||||
|
||||
# build position independent code
|
||||
option(SPDLOG_BUILD_PIC "Build position independent code (-fPIC)" OFF)
|
||||
|
||||
# example options
|
||||
option(SPDLOG_BUILD_EXAMPLE "Build example" ${SPDLOG_MASTER_PROJECT})
|
||||
@ -127,11 +125,10 @@ if(SPDLOG_TIDY)
|
||||
message(STATUS "Enabled clang-tidy")
|
||||
endif()
|
||||
|
||||
if(SPDLOG_BUILD_PIC OR SPDLOG_BUILD_SHARED)
|
||||
if(SPDLOG_BUILD_SHARED)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
|
||||
|
||||
if(NOT SPDLOG_USE_STD_FORMAT)
|
||||
if (SPDLOG_FMT_EXTERNAL)
|
||||
find_package(fmt REQUIRED)
|
||||
|
Loading…
Reference in New Issue
Block a user