mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 10:01:38 +08:00
45 lines
1.3 KiB
CMake
45 lines
1.3 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO simdjson/simdjson
|
|
REF "v${VERSION}"
|
|
HEAD_REF master
|
|
SHA512 b19fde8d81eaff34b83bb41028d7ee3a408ae5bc896277148e96879b1cba1a7cfc4af0064973bcb07e2b56e0955c3a3a581910d7af23d68510374e7f297c3b7c
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
exceptions SIMDJSON_EXCEPTIONS
|
|
threads SIMDJSON_ENABLE_THREADS
|
|
INVERTED_FEATURES
|
|
deprecated SIMDJSON_DISABLE_DEPRECATED_API
|
|
utf8-validation SIMDJSON_SKIPUTF8VALIDATION
|
|
)
|
|
|
|
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}")
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|