mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 23:18:59 +08:00
6522561467
* Update g3log to 2.1 * Update g3log version manifest * Add license as specified by the github actions bot * Reupdate the version info again * [g3log] Address reviews * Update g3log version manifest
34 lines
1.1 KiB
CMake
34 lines
1.1 KiB
CMake
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO KjellKod/g3log
|
|
REF 6f6da0ed2a8b42b8a5d1a416fe1646fe45e45c99
|
|
SHA512 65d966e0cb35ae6903619349520f12abf473c98ce6c9ffcb9b196b0be5d2b75ee5b716eeec8285ddc909f65049d8feab9389347c28be376b46cdb0d9246ffbbd
|
|
HEAD_REF master
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" G3_SHARED_LIB)
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" G3_SHARED_RUNTIME)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DG3_SHARED_LIB=${G3_SHARED_LIB} # Options.cmake
|
|
-DG3_SHARED_RUNTIME=${G3_SHARED_RUNTIME} # Options.cmake
|
|
-DADD_FATAL_EXAMPLE=OFF
|
|
-DADD_G3LOG_BENCH_PERFORMANCE=OFF
|
|
-DADD_G3LOG_UNIT_TEST=OFF
|
|
-DVERSION=${VERSION}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/g3log)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|