Skip to content

Commit

Permalink
Generate PIC code for arbiter.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Nov 29, 2016
1 parent 7b1ea05 commit 4710789
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vendor/arbiter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ PDAL_ADD_FREE_LIBRARY(${PDAL_ARBITER_LIB_NAME} STATIC arbiter.cpp)
target_include_directories(${PDAL_ARBITER_LIB_NAME} PRIVATE
${PDAL_VENDOR_DIR}/jsoncpp/dist)
target_link_libraries(${PDAL_ARBITER_LIB_NAME} )
#
# Arbiter is built static but is included in a shared lib.
#
if (UNIX)
target_compile_options(${PDAL_ARBITER_LIB_NAME} PRIVATE "-fPIC")
endif()

set_target_properties(${PDAL_ARBITER_LIB_NAME} PROPERTIES
VERSION "${PDAL_BUILD_VERSION}"
Expand Down

0 comments on commit 4710789

Please sign in to comment.