mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 13:09:01 +08:00
42cc830d87
* [simdjson] update to 3.0.0 * update version * update version * update version
43 lines
1.3 KiB
CMake
43 lines
1.3 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO simdjson/simdjson
|
|
REF d520062f8ec066af53d6b52f202f88af7d5c0e1e # v3.0.0
|
|
HEAD_REF master
|
|
SHA512 f6e4b674641b7e42ecac007b7f95f0dcaa9990d781271cea553bd905d9164d9da67896ad10fa9a41a6bd485af80c0828ede8900a333e4550b7aa8b143b9fb200
|
|
)
|
|
|
|
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}")
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
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) |