File tree Expand file tree Collapse file tree 9 files changed +21
-25
lines changed Expand file tree Collapse file tree 9 files changed +21
-25
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,27 @@ jobs:
82
82
echo ${{ matrix.config.cmake_args }}
83
83
echo ${{ matrix.config.toolchain }}
84
84
rm -rf .build
85
- cmake ${{ matrix.config.cmake_args }} -DCMAKE_TOOLCHAIN_FILE="etc/${{ matrix.config.toolchain }}-toolchain.cmake" -B .build -S .
86
- - name : CMake Build
85
+ cmake ${{ matrix.config.cmake_args }} -DCMAKE_INSTALL_PREFIX=.install - DCMAKE_TOOLCHAIN_FILE="etc/${{ matrix.config.toolchain }}-toolchain.cmake" -B .build -S .
86
+ - name : CMake ASAN Build
87
87
run : |
88
88
set -x
89
+ cmake --build .build --config Asan --target all_verify_interface_header_sets -- -k 0
89
90
cmake --build .build --config Asan --target all -- -k 0
90
- - name : CMake Test
91
+ - name : CMake ASAN Test
91
92
run : |
92
93
set -x
93
94
[[ ! -z "${{ matrix.config.asan_options }}" ]] && export ASAN_OPTIONS="${{ matrix.config.asan_options }}"
94
95
ctest --build-config Asan --output-on-failure --test-dir .build
96
+ - name : CMake RWDI Build
97
+ run : |
98
+ set -x
99
+ cmake --build .build --config RelWithDebInfo --target all_verify_interface_header_sets -- -k 0
100
+ cmake --build .build --config RelWithDebInfo --target all -- -k 0
101
+ - name : CMake RWDI Test
102
+ run : |
103
+ set -x
104
+ ctest --build-config RelWithDebInfo --output-on-failure --test-dir .build
105
+ - name : Install
106
+ run : |
107
+ set -x
108
+ cmake --install .build --config RelWithDebInfo --component beman_optional26_development --verbose
Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ if(OPTIONAL26_ENABLE_TESTING)
31
31
FetchContent_MakeAvailable(googletest)
32
32
endif ()
33
33
34
+ set (CMAKE_VERIFY_INTERFACE_HEADER_SETS ON )
35
+
34
36
# Create the library target and named header set for beman_optional26
35
- add_library (beman_optional26 STATIC )
37
+ add_library (beman_optional26 INTERFACE )
36
38
target_sources (
37
39
beman_optional26
38
40
PUBLIC FILE_SET beman_optional26_headers TYPE HEADERS BASE_DIRS src include
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ $(_build_path)/CMakeCache.txt: | $(_build_path) .gitmodules
61
61
62
62
TARGET: =all
63
63
compile : $(_build_path ) /CMakeCache.txt # # Compile the project
64
+ cmake --build $(_build_path ) --config $(CONFIG ) --target all_verify_interface_header_sets -- -k 0
64
65
cmake --build $(_build_path ) --config $(CONFIG ) --target all -- -k 0
65
66
66
67
install : $(_build_path ) /CMakeCache.txt compile # # Install the project
Original file line number Diff line number Diff line change 1
1
# src/beman/optional26/CMakeLists.txt -*-cmake-*-
2
2
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3
3
4
- # Ensure that optional and iterator get compiled at least once
5
- target_sources (beman_optional26 PUBLIC optional .cpp detail/iterator.cpp)
6
-
7
4
# The library is empty -- exclude it
8
5
install (
9
6
TARGETS beman_optional26
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ target_sources(
17
17
optional_range_support.t.cpp
18
18
optional_ref.t.cpp
19
19
optional_ref_monadic.t.cpp
20
- test_types.cpp
21
- test_utilities.cpp
22
20
)
23
21
24
22
target_sources(
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments