Skip to content

Commit

Permalink
Build static libs with PIC.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Sep 4, 2019
1 parent 4eddd4e commit 240b6ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ macro(PDAL_ADD_FREE_LIBRARY _name _library_type)
RUNTIME DESTINATION ${PDAL_BIN_INSTALL_DIR}
LIBRARY DESTINATION ${PDAL_LIB_INSTALL_DIR}
ARCHIVE DESTINATION ${PDAL_LIB_INSTALL_DIR})
else()
set_target_properties(${_name} PROPERTIES
POSITION_INDEPENDENT_CODE TRUE)
endif()
endmacro(PDAL_ADD_FREE_LIBRARY)

Expand Down

0 comments on commit 240b6ef

Please sign in to comment.