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 @@ -83,13 +83,27 @@ jobs:
83
83
echo ${{ matrix.config.cmake_args }}
84
84
echo ${{ matrix.config.toolchain }}
85
85
rm -rf .build
86
- cmake ${{ matrix.config.cmake_args }} -DCMAKE_TOOLCHAIN_FILE="etc/${{ matrix.config.toolchain }}-toolchain.cmake" -B .build -S .
87
- - name : CMake Build
86
+ cmake ${{ matrix.config.cmake_args }} -DCMAKE_INSTALL_PREFIX=.install - DCMAKE_TOOLCHAIN_FILE="etc/${{ matrix.config.toolchain }}-toolchain.cmake" -B .build -S .
87
+ - name : CMake ASAN Build
88
88
run : |
89
89
set -x
90
+ cmake --build .build --config Asan --target all_verify_interface_header_sets -- -k 0
90
91
cmake --build .build --config Asan --target all -- -k 0
91
- - name : CMake Test
92
+ - name : CMake ASAN Test
92
93
run : |
93
94
set -x
94
95
[[ ! -z "${{ matrix.config.asan_options }}" ]] && export ASAN_OPTIONS="${{ matrix.config.asan_options }}"
95
96
ctest --build-config Asan --output-on-failure --test-dir .build
97
+ - name : CMake RWDI Build
98
+ run : |
99
+ set -x
100
+ cmake --build .build --config RelWithDebInfo --target all_verify_interface_header_sets -- -k 0
101
+ cmake --build .build --config RelWithDebInfo --target all -- -k 0
102
+ - name : CMake RWDI Test
103
+ run : |
104
+ set -x
105
+ ctest --build-config RelWithDebInfo --output-on-failure --test-dir .build
106
+ - name : Install
107
+ run : |
108
+ set -x
109
+ 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