File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ cmake_minimum_required(VERSION 3.20)
33# Project declaration - cpp_library_setup will use this name and detect version from git tags
44project (stlab-enum-ops)
55
6- set (CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR } /.cache /cpm CACHE PATH "CPM cache" )
6+ # Setup cpp-library infrastructure
7+ if (PROJECT_IS_TOP_LEVEL)
8+ set (CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR } /.cache /cpm CACHE PATH "CPM cache" )
9+ endif ()
710include (cmake/CPM.cmake )
811
912# Fetch cpp-library via CPM
@@ -14,7 +17,8 @@ include(cmake/CPM.cmake)
1417# URL "${CMAKE_SOURCE_DIR}/../cpp-library"
1518# )
1619CPMAddPackage ("gh:stlab/cpp-library#3ab13f2be3b835fd1e6feaab7845088c31642eba" )
17- # CPMAddPackage("gh:stlab/cpp-library@4.0.3")
20+ # CPMAddPackage("gh:stlab/cpp-library@4.0.5")
21+
1822include (${cpp-library_SOURCE_DIR } /cpp-library.cmake )
1923
2024# Let cpp-library handle the project declaration and version detection
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ auto stlab_enable_bitmask_enum(...) -> std::false_type;
134134// / arithmetic operators.
135135auto stlab_enable_arithmetic_enum (...) -> std::false_type;
136136
137- // Don't use the `\ deprecated` Doxygen tag here because clang will warn that the
137+ // Don't use the `\deprecated` Doxygen tag here because clang will warn that the
138138// documentation marks the operations deprecated but the deprecated attribute is missing.
139139
140140// / \note Use is **deprecated**. Use stlab_enable_bitmask_enum instead.
You can’t perform that action at this time.
0 commit comments