# #jsoncpp # #JSON for C++ # #Builds only static library because the interface is C++ and does not lend #itself to safe export from a dynamic library across all platforms. #Note that there are restrictions using a static library under 64 bit Linux: #If linked into a dynamic library, the static library must be compiled #with position independent code. See the cmake option #CMAKE_POSITION_INDEPENDENT_CODE, which you my want to set ON below. # ExternalProject_Add ( jsoncpp PREFIX ${CMAKE_INSTALL_PREFIX} URL https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz URL_MD5 9b51c65c563463220a8cb5fa33d525f8 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX= -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_SHARED_LIBS=OFF -DJSONCPP_WITH_TESTS=OFF -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF -DJSONCPP_WITH_PKGCONFIG_SUPPORT=OFF -DJSONCPP_WITH_CMAKE_PACKAGE=ON )