mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 16:28:59 +08:00
8dd05eb74a
* [nanobench] Update to 4.3.7 * [nanobench] Update version files * [nanobench] Fix build on window x86 * [nanobench] Update version files * [nanobench] Add missing patch file * [nanobench] Update version files
22 lines
885 B
Diff
22 lines
885 B
Diff
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()
|