Set PIC everywhere

pull/705/head
Michael 5 years ago
parent da00b1bf1e
commit 082897eff5
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

@ -112,9 +112,8 @@ add_subdirectory(vendor/cxxopts)
add_subdirectory(vendor/nlohmann)
include_directories(SYSTEM vendor/cxxopts/include)
if (NOT WIN32)
add_compile_options(-fPIC)
endif(NOT WIN32)
# Always build PIC
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wno-unknown-warning-option)

Loading…
Cancel
Save