Skip to content

Commit 66d620f

Browse files
authored
Merge pull request #5 from ClausKlein/develop
Use simply include instead of find_package
2 parents 6810506 + 20aab98 commit 66d620f

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

CMakeLists.txt

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,26 @@ option(
2525
${PROJECT_IS_TOP_LEVEL}
2626
)
2727

28-
2928
add_library(beman.take_before INTERFACE)
3029
target_sources(
31-
beman.take_before
32-
INTERFACE
33-
FILE_SET HEADERS
34-
BASE_DIRS include
35-
FILES include/beman/take_before/take_before.hpp
36-
)
30+
beman.take_before
31+
INTERFACE
32+
FILE_SET HEADERS
33+
BASE_DIRS include
34+
FILES include/beman/take_before/take_before.hpp
35+
)
3736

3837
add_library(beman::take_before ALIAS beman.take_before)
3938
set_target_properties(beman.take_before PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON)
4039

41-
set(CMAKE_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR}/infra/cmake)
42-
40+
# gersemi: on
4341

44-
find_package(beman-install-library REQUIRED)
42+
include(infra/cmake/beman-install-library-config.cmake)
4543
beman_install_library(beman.take_before)
4644

4745
if(BEMAN_TAKE_BEFORE_BUILD_TESTS)
48-
enable_testing()
49-
add_subdirectory(tests/beman/take_before)
46+
enable_testing()
47+
add_subdirectory(tests/beman/take_before)
5048
endif()
5149

5250
if(BEMAN_TAKE_BEFORE_BUILD_EXAMPLES)

CMakePresets.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@
120120
{
121121
"name": "_root-build",
122122
"hidden": true,
123-
"jobs": 0
123+
"jobs": 0,
124+
"targets": [
125+
"all",
126+
"all_verify_interface_header_sets"
127+
]
124128
},
125129
{
126130
"name": "gcc-debug",

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# beman::take_before
1+
# `beman::take_before`
22

33
<!--
44
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
@@ -105,7 +105,7 @@ Full runnable examples can be found in [`examples/`](examples/).
105105
This project requires:
106106

107107
* A C++ compiler that supports **C++20** or greater
108-
* CMake 3.25 or later
108+
* CMake 3.28 or later
109109
* (Test Only) GoogleTest
110110

111111
You can disable building tests by setting CMake option `BEMAN_TAKE_BEFORE_BUILD_TESTS` to `OFF`.
@@ -207,5 +207,5 @@ When the delimiter type satisfies `tidy_obj` and the underlying range is borrowe
207207

208208
## References
209209

210-
- [P3220R2: views::take_before](https://wg21.link/P3220R2)
210+
- [P3220R2: views::take before](https://wg21.link/P3220R2)
211211
- [P2760: Tier 1 Ranges Adaptors](https://wg21.link/P2760)

0 commit comments

Comments
 (0)