Skip to content

Commit f3ec205

Browse files
committed
Add cxx_standard to 20
1 parent bc166f7 commit f3ec205

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tiledb/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ target_link_libraries(
2222
TileDB::tiledb_shared
2323
)
2424

25+
target_compile_features(
26+
libtiledb
27+
PUBLIC
28+
cxx_std_20
29+
)
30+
2531
# Pybind11
2632

2733
pybind11_add_module(
@@ -44,6 +50,12 @@ target_link_libraries(
4450
TileDB::tiledb_shared
4551
)
4652

53+
target_compile_features(
54+
main
55+
PUBLIC
56+
cxx_std_20
57+
)
58+
4759
install(TARGETS main libtiledb DESTINATION tiledb)
4860

4961
if(TILEDB_DOWNLOADED)

tiledb/cc/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ target_link_libraries(
2727
TileDB::tiledb_shared
2828
)
2929

30+
target_compile_features(
31+
cc
32+
PUBLIC
33+
cxx_std_20
34+
)
35+
3036
install(TARGETS cc DESTINATION tiledb)
3137

3238
if(TILEDB_DOWNLOADED)

0 commit comments

Comments
 (0)