mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
Upgrade Celero to v2.2.0 (#3259)
* Upgrade Celero to v2.2.0 * [celero] Fix installed cmake targets
This commit is contained in:
parent
028f280d22
commit
a4b35f14ba
@ -1,3 +1,3 @@
|
||||
Source: celero
|
||||
Version: 2.1.0-1
|
||||
Version: 2.1.0-2
|
||||
Description: Celero is a modern cross-platform (Windows, Linux, MacOS) Microbenchmarking library for C++.
|
||||
|
@ -5,12 +5,11 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO DigitalInBlue/Celero
|
||||
REF v2.1.0
|
||||
SHA512 30563567255b09a2c810d97896839589ed99d45b6c8d075fd16d1a0068457d70195a199f5c982c84784c2e03284c1eaac565253fa72b81d9e2d4102721b80221
|
||||
REF v2.2.0
|
||||
SHA512 6fac1fa949b18caabf59f3675c6e592cfadc3efa5e674b1f8b183e728ec880a4f5616d5d41c97f8fc26ef9520284188f519b7634209d0a56fb38a6993a9e9680
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
@ -24,6 +23,10 @@ vcpkg_configure_cmake(
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/celero/celero-target.cmake ${CURRENT_PACKAGES_DIR}/share/celero/celero-config.cmake)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/celero RENAME copyright)
|
||||
|
@ -28,6 +28,12 @@ function(vcpkg_fixup_cmake_targets)
|
||||
set(RELEASE_SHARE ${CURRENT_PACKAGES_DIR}/${_vfct_TARGET_PATH})
|
||||
|
||||
if(_vfct_CONFIG_PATH AND NOT RELEASE_SHARE STREQUAL "${CURRENT_PACKAGES_DIR}/${_vfct_CONFIG_PATH}")
|
||||
if(_vfct_CONFIG_PATH STREQUAL "share")
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/share ${CURRENT_PACKAGES_DIR}/debug/share2)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share ${CURRENT_PACKAGES_DIR}/share2)
|
||||
set(_vfct_CONFIG_PATH share2)
|
||||
endif()
|
||||
|
||||
set(DEBUG_CONFIG ${CURRENT_PACKAGES_DIR}/debug/${_vfct_CONFIG_PATH})
|
||||
set(RELEASE_CONFIG ${CURRENT_PACKAGES_DIR}/${_vfct_CONFIG_PATH})
|
||||
|
||||
@ -36,6 +42,7 @@ function(vcpkg_fixup_cmake_targets)
|
||||
message(FATAL_ERROR "'${DEBUG_CONFIG}' does not exist.")
|
||||
endif()
|
||||
|
||||
# This roundabout handling enables CONFIG_PATH share
|
||||
file(MAKE_DIRECTORY ${DEBUG_SHARE})
|
||||
file(GLOB FILES ${DEBUG_CONFIG}/*)
|
||||
file(COPY ${FILES} DESTINATION ${DEBUG_SHARE})
|
||||
@ -76,7 +83,7 @@ function(vcpkg_fixup_cmake_targets)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
||||
if(NOT EXISTS ${DEBUG_SHARE})
|
||||
if(NOT EXISTS "${DEBUG_SHARE}")
|
||||
message(FATAL_ERROR "'${DEBUG_SHARE}' does not exist.")
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user