diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-05-12 21:54:32 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-05-12 21:54:32 +0300 |
commit | ccabb3a9c929c7475cfb7afadcc1cb17ecdf8748 (patch) | |
tree | 34bce37a81b1d08f5450a81d2ba752223447d728 /CMakeLists.txt | |
parent | a057e754be27b1f06b07679a21c7422786e93fdc (diff) |
Set proper C complier for Macos and set -fpic flag for GCC
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 61983d7..aaa5431 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,7 @@ set (CMAKE_CXX_STANDARD 11) set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) set(CMAKE_DISABLE_SOURCE_CHANGES ON) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") message(SEND_ERROR "In-source builds are not allowed.") |