early-access version 2853
This commit is contained in:
21
externals/vcpkg/ports/nanobench/fix-cmakefile.patch
vendored
Executable file
21
externals/vcpkg/ports/nanobench/fix-cmakefile.patch
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
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()
|
||||
21
externals/vcpkg/ports/nanobench/portfile.cmake
vendored
Executable file
21
externals/vcpkg/ports/nanobench/portfile.cmake
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
# Header-only library
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinus/nanobench
|
||||
REF v4.3.7
|
||||
SHA512 2f5b9573e220b507586c8586903489bd7dc2a8a09da07bd2454842a4c33c0323b0911ebeb902d5098c7dd9c96925d9bc3d4ca62fc5798f630b4b4d3e75d117a7
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-cmakefile.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
19
externals/vcpkg/ports/nanobench/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/nanobench/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "nanobench",
|
||||
"version": "4.3.7",
|
||||
"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
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user