# ==========================
# 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