vcpkg/ports/simdjson/portfile.cmake
myd7349 464bd04df4
[simdjson] Update to 0.9.7 (#19370)
* [simdjson] Update to 0.9.7

* [simdjson] Bump version
2021-08-10 01:03:05 -07:00

41 lines
1.3 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO simdjson/simdjson
REF 33d926bd4448e2e087511f34e49461230691a503 # v0.9.7
HEAD_REF master
SHA512 1c492ed4c19019abbe6743c8ad60f0a03f9171f5ece6a3b2ec6429eec610d3b0750eceba81cda11791fe6fd34881af1810ee18f1ba486f9147e188c955546cad
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
exceptions SIMDJSON_EXCEPTIONS
threads SIMDJSON_ENABLE_THREADS
INVERTED_FEATURES
deprecated SIMDJSON_DISABLE_DEPRECATED_API
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SIMDJSON_BUILD_STATIC)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DSIMDJSON_JUST_LIBRARY=ON
-DSIMDJSON_SANITIZE_UNDEFINED=OFF
-DSIMDJSON_SANITIZE=OFF
-DSIMDJSON_SANITIZE_THREADS=OFF
-DSIMDJSON_BUILD_STATIC=${SIMDJSON_BUILD_STATIC}
-DSIMDJSON_DEVELOPMENT_CHECKS=OFF
-DSIMDJSON_VERBOSE_LOGGING=OFF
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)