Skip to content

Commit

Permalink
Revert BUILD_PIC to CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
agievich committed Jun 13, 2024
1 parent 1836455 commit bb8a7eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ set(BEE2_VERSION_PATCH "5")
set(BEE2_VERSION
"${BEE2_VERSION_MAJOR}.${BEE2_VERSION_MINOR}.${BEE2_VERSION_PATCH}")

# \remark Set BUILD_PIC even for static libraries if they are linked
# into shared libraries

option(BUILD_SHARED_LIBS "Build shared libraries." ON)
option(BUILD_PIC "Build position independent code." ON)
option(BUILD_FAST "Build with the SAFE_FAST directive." OFF)
option(BUILD_CMD "Build bee2cmd." ON)
option(BUILD_TESTS "Build tests." ON)
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ else()
target_link_libraries(bee2_static)
endif()

# enable -fPIC even for static lib if it's linked into a shared lib
set_property(TARGET bee2_static PROPERTY POSITION_INDEPENDENT_CODE
${BUILD_PIC})

Expand Down

0 comments on commit bb8a7eb

Please sign in to comment.