From f3ec20544318185502cca44ee5887d35150ae332 Mon Sep 17 00:00:00 2001 From: Dusan Baran Date: Mon, 20 May 2024 11:32:14 +0200 Subject: [PATCH] Add cxx_standard to 20 --- tiledb/CMakeLists.txt | 12 ++++++++++++ tiledb/cc/CMakeLists.txt | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/tiledb/CMakeLists.txt b/tiledb/CMakeLists.txt index b831745af0..826f704c22 100644 --- a/tiledb/CMakeLists.txt +++ b/tiledb/CMakeLists.txt @@ -22,6 +22,12 @@ target_link_libraries( TileDB::tiledb_shared ) +target_compile_features( + libtiledb + PUBLIC + cxx_std_20 +) + # Pybind11 pybind11_add_module( @@ -44,6 +50,12 @@ target_link_libraries( TileDB::tiledb_shared ) +target_compile_features( + main + PUBLIC + cxx_std_20 +) + install(TARGETS main libtiledb DESTINATION tiledb) if(TILEDB_DOWNLOADED) diff --git a/tiledb/cc/CMakeLists.txt b/tiledb/cc/CMakeLists.txt index 9c68879db1..d3c715c2ac 100644 --- a/tiledb/cc/CMakeLists.txt +++ b/tiledb/cc/CMakeLists.txt @@ -27,6 +27,12 @@ target_link_libraries( TileDB::tiledb_shared ) +target_compile_features( + cc + PUBLIC + cxx_std_20 +) + install(TARGETS cc DESTINATION tiledb) if(TILEDB_DOWNLOADED)