Skip to content

Commit

Permalink
Merge pull request #14 from ethz-asl/fix/fPIC_on_static
Browse files Browse the repository at this point in the history
Compile static lib with PIC
  • Loading branch information
simonlynen committed Aug 5, 2014
2 parents 982b2e0 + 72a1c30 commit b7c31a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ if (SHARED_LIBS)
install(TARGETS ${LIB_NAME} LIBRARY DESTINATION lib)
else(SHARED_LIBS)
add_library(${LIB_NAME} ${NABO_SRC})
add_definitions(-fPIC)
install(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib)
endif(SHARED_LIBS)
set_target_properties(${LIB_NAME} PROPERTIES VERSION "${PROJECT_VERSION}" SOVERSION 1)
Expand Down

0 comments on commit b7c31a4

Please sign in to comment.