mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-23 00:56:21 +03: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:
parent
f1c570752b
commit
1bdc95a498
@ -53,7 +53,7 @@ include_directories (BEFORE SYSTEM ./ext/gtest/include)
|
|||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
if (NOT APPLE)
|
if (NOT APPLE)
|
||||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For config.h, detect the libraries, functions, etc.
|
# For config.h, detect the libraries, functions, etc.
|
||||||
|
Loading…
Reference in New Issue
Block a user