Skip to content

Commit

Permalink
Add cmake flag equivalent to -fPIC (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilmour authored Jan 23, 2021
1 parent baa9ef2 commit c827956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ endif()
if(BUILD_STATIC)
add_library(dd_opentracing-static STATIC ${DD_OPENTRACING_SOURCES})
add_sanitizers(dd_opentracing-static)
set_target_properties(dd_opentracing-static PROPERTIES OUTPUT_NAME dd_opentracing)
set_target_properties(dd_opentracing-static PROPERTIES OUTPUT_NAME dd_opentracing POSITION_INDEPENDENT_CODE ON)
install(TARGETS dd_opentracing-static
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
Expand Down

0 comments on commit c827956

Please sign in to comment.