mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 02:11:58 +08:00
[nanobench] Bump to 4.3.10 (#29468)
* [nanobench] Bump to 4.3.10 * update version database * apply suggested change * update version database
This commit is contained in:
parent
261f5b1fcc
commit
ea0c13ec12
19
ports/nanobench/CMakeLists.txt
Normal file
19
ports/nanobench/CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
||||
|
||||
project(nanobench LANGUAGES CXX)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
add_library(nanobench INTERFACE)
|
||||
target_include_directories(nanobench INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
||||
|
||||
install(TARGETS nanobench EXPORT nanobench)
|
||||
|
||||
install(
|
||||
EXPORT nanobench
|
||||
FILE nanobench-config.cmake
|
||||
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/nanobench"
|
||||
NAMESPACE nanobench::
|
||||
)
|
||||
|
||||
install(FILES "${CMAKE_SOURCE_DIR}/src/include/nanobench.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
@ -1,21 +0,0 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b2f6089..d997097 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -3,9 +3,6 @@ project(nanobench LANGUAGES CXX)
|
||||
|
||||
# determine whether this is a standalone project or included by other projects
|
||||
set(NANOBENCH_STANDALONE_PROJECT OFF)
|
||||
-if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
||||
- set(NANOBENCH_STANDALONE_PROJECT ON)
|
||||
-endif()
|
||||
|
||||
if (NANOBENCH_STANDALONE_PROJECT)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # generate compile_commands.json
|
||||
@@ -131,4 +128,6 @@ else()
|
||||
add_library(nanobench::nanobench ALIAS nanobench)
|
||||
set_property(TARGET nanobench PROPERTY CXX_STANDARD 17)
|
||||
target_include_directories(nanobench PUBLIC ${PROJECT_SOURCE_DIR}/src/include)
|
||||
+ install(TARGETS nanobench LIBRARY DESTINATION lib)
|
||||
+ install(FILES src/include/nanobench.h DESTINATION include)
|
||||
endif()
|
@ -1,22 +1,23 @@
|
||||
vcpkg_minimum_required(VERSION 2022-11-10)
|
||||
|
||||
# Header-only library
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinus/nanobench
|
||||
REF v${VERSION}
|
||||
SHA512 2d0c9e912fd2e777e3c75ac52d51daff720b51a776e5fc9f9d1e198f8b106bc13bd21219f195bf9c6c80b5a13fdb6b805c436d3060ec46fbd1f2ef67d58945db
|
||||
SHA512 aa00dfc585445fda63b3ba1a802da259993b6b99d0bc2c9bb5f8a9dac64d25e9a61f072846d8f70ee2fea58482431749189179520ba7f6e075dbb223574a3a4d
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-cmakefile.patch
|
||||
)
|
||||
|
||||
set(VCPKG_BUILD_TYPE release) # header-only port
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
4
ports/nanobench/usage
Normal file
4
ports/nanobench/usage
Normal file
@ -0,0 +1,4 @@
|
||||
nanobench provides CMake targets:
|
||||
|
||||
find_package(nanobench CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE nanobench::nanobench)
|
@ -1,12 +1,11 @@
|
||||
{
|
||||
"name": "nanobench",
|
||||
"version": "4.3.9",
|
||||
"version": "4.3.10",
|
||||
"description": "Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20",
|
||||
"homepage": "https://nanobench.ankerl.com",
|
||||
"license": "MIT",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"fmt",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
|
@ -5233,7 +5233,7 @@
|
||||
"port-version": 1
|
||||
},
|
||||
"nanobench": {
|
||||
"baseline": "4.3.9",
|
||||
"baseline": "4.3.10",
|
||||
"port-version": 0
|
||||
},
|
||||
"nanodbc": {
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "36edb6691f30882941ba28ae9fce39e251398466",
|
||||
"version": "4.3.10",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "9c21c0e4b95602fd614f1ab27de25b1f3068472a",
|
||||
"version": "4.3.9",
|
||||
|
Loading…
x
Reference in New Issue
Block a user