mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
cmake: set(CMAKE_POSITION_INDEPENDENT_CODE ON) for Linux static library purposes
This commit is contained in:
parent
f44fa31f51
commit
de67ebdda1
@ -36,6 +36,7 @@ if(MSVC)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "CYGWIN" OR CMAKE_SYSTEM_NAME MATCHES "MSYS")
|
if(CMAKE_SYSTEM_NAME MATCHES "CYGWIN" OR CMAKE_SYSTEM_NAME MATCHES "MSYS")
|
||||||
set(CMAKE_CXX_EXTENSIONS ON)
|
set(CMAKE_CXX_EXTENSIONS ON)
|
||||||
|
Loading…
Reference in New Issue
Block a user