From aec18d337f41d8e3081ee65f5cf3b5090179ab0e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 15 Oct 2023 16:17:36 +0300 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d724ea36..d0507d46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,9 @@ # Generated by `boostdep --cmake thread` -# Copyright 2020 Peter Dimov +# Copyright 2020, 2021 Peter Dimov # Distributed under the Boost Software License, Version 1.0. # https://www.boost.org/LICENSE_1_0.txt -cmake_minimum_required(VERSION 3.5...3.16) +cmake_minimum_required(VERSION 3.8...3.20) project(boost_thread VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) @@ -63,9 +63,7 @@ target_link_libraries(boost_thread Boost::date_time Boost::exception Boost::function - Boost::intrusive Boost::io - Boost::iterator Boost::move Boost::optional Boost::predef @@ -80,12 +78,10 @@ target_link_libraries(boost_thread Boost::winapi Threads::Threads - - PRIVATE - Boost::algorithm - Boost::lexical_cast ) +target_compile_features(boost_thread PUBLIC cxx_std_11) + target_compile_definitions(boost_thread PUBLIC BOOST_THREAD_NO_LIB PRIVATE BOOST_THREAD_SOURCE @@ -102,4 +98,3 @@ if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") add_subdirectory(test) endif() -