X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fthird_party%2Fjsoncpp%2FCMakeLists.txt;h=03c091b2197c2aab7bd70c9661cd6019ac376d29;hb=a50400c186a05160e1164bf544571b739ff6fac8;hp=1ee9cdfa9bac3f47e2b616069089f23fa5cea895;hpb=4c9d2fdc9c556713531bdd2f25ce49685ab218e9;p=bamtools.git diff --git a/src/third_party/jsoncpp/CMakeLists.txt b/src/third_party/jsoncpp/CMakeLists.txt index 1ee9cdf..03c091b 100644 --- a/src/third_party/jsoncpp/CMakeLists.txt +++ b/src/third_party/jsoncpp/CMakeLists.txt @@ -6,14 +6,15 @@ # ========================== # add compiler definitions -#add_definitions(-DJSONCPP_LIBRARY) # (for proper exporting of library symbols) +add_definitions( -DBAMTOOLS_JSONCPP_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 jsoncpp library -add_library ( jsoncpp SHARED - json_reader.cpp - json_value.cpp - json_writer.cpp - ) +add_library( jsoncpp SHARED + json_reader.cpp + json_value.cpp + json_writer.cpp + ) # set jsoncpp library properties set_target_properties( jsoncpp PROPERTIES