Skip to content

Commit 1167833

Browse files
committed
feature check
1 parent b72668d commit 1167833

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
- name: install compilers
9191
run: |
9292
apt update -y
93-
apt install -y --no-install-recommends ca-certificates gpg curl ninja-build ${{ env.CC }} ${{ env.CXX }} ${{ env.FC }}
93+
apt install -y --no-install-recommends ca-certificates gpg curl make ninja-build ${{ env.CC }} ${{ env.CXX }} ${{ env.FC }}
9494
9595
- name: install CMake
9696
run: |

test/iterator/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
include(CheckCXXSymbolExists)
2+
3+
check_cxx_symbol_exists(__cpp_lib_to_address "memory" cpp20_to_address)
4+
if(NOT cpp20_to_address)
5+
return()
6+
endif()
7+
18
add_library(int_iterator OBJECT lib.cpp)
29
target_include_directories(int_iterator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
310

0 commit comments

Comments
 (0)