mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 14:41:57 +08:00
[CMake] properly declare FPIC
use CMAKE_POSITION_INDEPENDENT_CODE instead of manually addinf -fPIC to CXX args. modified: CMakeLists.txt
This commit is contained in:
@@ -53,7 +53,7 @@ include_directories (BEFORE SYSTEM ./ext/gtest/include)
|
||||
|
||||
if (UNIX)
|
||||
if (NOT APPLE)
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||
set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
||||
endif()
|
||||
|
||||
# For config.h, detect the libraries, functions, etc.
|
||||
|
||||
Reference in New Issue
Block a user