blob: 9a392e59c14bd68046ae9e8401800fc0d4c0e2b6 [file] [log] [blame]
--- a/CMakeLists.txt 2019-09-18 21:59:25.000000000 +0000
+++ b/CMakeLists.txt 2020-12-10 14:14:05.462435162 +0000
@@ -180,7 +180,7 @@
target_link_libraries(opentracing-static ${LIBRARIES})
# Windows generates a lib and dll files for a shared library. using the same name will override the lib file generated by the shared target
if (NOT WIN32)
- set_target_properties(opentracing-static PROPERTIES OUTPUT_NAME opentracing)
+ set_target_properties(opentracing-static PROPERTIES OUTPUT_NAME opentracing POSITION_INDEPENDENT_CODE ON)
endif()
target_compile_definitions(opentracing-static PUBLIC OPENTRACING_STATIC)
target_include_directories(opentracing-static INTERFACE "$<INSTALL_INTERFACE:include/>")