Skip to content

Commit

Permalink
[CMake] properly declare FPIC (#417)
Browse files Browse the repository at this point in the history
[CMake] properly declare FPIC
  • Loading branch information
AdrianKoshka authored Aug 23, 2019
2 parents f1c5707 + 1bdc95a commit 28466ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 28466ee

Please sign in to comment.