include(vcpkg_common_functions) if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") message("parson only supports static linkage") set(VCPKG_LIBRARY_LINKAGE "static") endif() vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO kgabis/parson REF b58ac757a89fe85468681dacd504190ef58d2d39 SHA512 8cc9e7e94d3476e1d48411a9e97950008fae0e30646d929521f7202737974cb6075f54ba05399947d2524a118e01a08bbeb652aab057ce358614f4d17f14eace HEAD_REF master ) file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA ) vcpkg_install_cmake() file(COPY ${SOURCE_PATH}/parson.h DESTINATION ${CURRENT_PACKAGES_DIR}/include) vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-parson TARGET_PATH share/unofficial-parson) file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/parson RENAME copyright) vcpkg_copy_pdbs()