vcpkg/ports/simdjson/portfile.cmake
chausner ce26221120
[simdjson] Update to 1.0.1 (#20876)
* Update simdjson to 1.0.1

* Update CI baseline

Co-authored-by: chausner <chausner@users.noreply.github.com>
2021-10-21 23:54:19 -07:00

41 lines
1.3 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO simdjson/simdjson
REF v1.0.1
HEAD_REF master
SHA512 ecf67b145f1269225483a64b5ff9de826a8124fbae60dec1e6fe99aa974a29e07037a9318ae2dfc657971695ffa5e4fbcdff4c855365c074971d34c69dd77561
)
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)