Skip to content

Commit

Permalink
Added FPIC
Browse files Browse the repository at this point in the history
  • Loading branch information
Dialpuri committed Sep 6, 2024
1 parent 2e7a7fc commit 88e6bac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set(PRIVATEER_CC_FLAGS "-O2 -w")
set(PRIVATEER_CXX_FLAGS "-O2 -w -I${CMAKE_INSTALL_PREFIX}/include")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${PRIVATEER_CC_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PRIVATEER_CXX_FLAGS} ")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

option(BUILD_SHARED_LIBS "Build as a shared library" ON)
set(CMAKE_CXX_STANDARD 11)
Expand Down Expand Up @@ -83,6 +84,7 @@ include_directories(
${ccp4-dependencies_SOURCE_DIR}
${PRIVATEER_SOURCE_DIR}/cpp
${PRIVATEER_SOURCE_DIR}/cpp/pybind11)

link_directories(
${CMAKE_BINARY_DIR}/mmdb2
${CMAKE_BINARY_DIR}/clipper
Expand Down

0 comments on commit 88e6bac

Please sign in to comment.