mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 16:40:05 +08:00
a0bfd30d68
* [g3log] Update to 2.3 * [g3log] Suggested tweak, use REF "${VERSION}" in portfile.cmake * [g3log] Update version files
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 "${VERSION}"
|
|
SHA512 deba3c569dc4b7fc55129b754cd2ba8a9b59f4520014edbbfd316367d7085ac18dd33e354803b4dbe6be982a2e74509d7dc5b36b3b1e0cfcb1033207aaf5c9b2
|
|
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)
|