X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Futils%2FCMakeLists.txt;h=46e72352ef1005f4c8b2a3f4a2bb00442e2d2f13;hb=9f1ce8c47aeadb6dc1320b52ee671c3341b97935;hp=5bbe6248cadf291fcc7132b5b1c3151e44723bbd;hpb=ad3f59ce304c37faff88fbc5ea8c1df047326df4;p=bamtools.git diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt index 5bbe624..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.2 + SOVERSION 2.0.0 OUTPUT_NAME bamtools-utils )