X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Futils%2FCMakeLists.txt;h=46e72352ef1005f4c8b2a3f4a2bb00442e2d2f13;hb=9f1ce8c47aeadb6dc1320b52ee671c3341b97935;hp=d1e26ff4a4f0fdd3b4e5c68d484615fedb5fdae1;hpb=8c80d760637f8df39262683cd2570f0589423d36;p=bamtools.git diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt index d1e26ff..46e7235 100644 --- a/src/utils/CMakeLists.txt +++ b/src/utils/CMakeLists.txt @@ -10,6 +10,7 @@ include_directories (${BamTools_SOURCE_DIR}/src/api) # add compiler definitions add_definitions(-DBAMTOOLS_UTILS_LIBRARY) # (for proper exporting of library symbols) +add_definitions( -fPIC ) # (attempt to force PIC compiling on CentOS, not being set on shared libs by CMake) # create BamTools utils library add_library ( BamTools-utils SHARED @@ -24,6 +25,6 @@ target_link_libraries ( BamTools-utils BamTools ) # set BamTools library properties set_target_properties( BamTools-utils PROPERTIES - SOVERSION 1.0.0 + SOVERSION 2.0.0 OUTPUT_NAME bamtools-utils )