From 25fdf359711eb27e9e7ec0cfe19cc459ec6488d7 Mon Sep 17 00:00:00 2001 From: Tessil Date: Sun, 22 Sep 2024 11:48:24 +0100 Subject: [PATCH] Bump cmake_minimum_required version to 3.8 --- CMakeLists.txt | 8 ++------ tests/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 167840a..5907c6f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.8) project(tsl_hat_trie) @@ -15,8 +15,4 @@ target_sources(tsl_hat_trie INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/a "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/htrie_map.h" "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/htrie_set.h") - -if(${CMAKE_VERSION} VERSION_GREATER "3.7") - # Only available since version 3.8 - target_compile_features(tsl_hat_trie INTERFACE cxx_std_11) -endif() +target_compile_features(tsl_hat_trie INTERFACE cxx_std_11) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 542c83c..a610050 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.8) project(tsl_hat_trie_tests)