Regenerate CMakeLists.txt

This commit is contained in:
Peter Dimov 2023-10-13 13:04:48 +03:00
parent 8745fb542a
commit 0579c7e1e4
4 changed files with 15 additions and 7 deletions

View File

@ -1,8 +1,9 @@
# Generated by `boostdep --cmake chrono`
# 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_chrono VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
@ -35,10 +36,11 @@ target_link_libraries(boost_chrono
Boost::winapi
)
target_compile_features(boost_chrono PUBLIC cxx_std_11)
target_compile_definitions(boost_chrono
PUBLIC BOOST_CHRONO_NO_LIB
# Source files already define BOOST_CHRONO_SOURCE
# PRIVATE BOOST_CHRONO_SOURCE
PRIVATE BOOST_CHRONO_SOURCE
)
if(BUILD_SHARED_LIBS)

View File

@ -6,10 +6,12 @@
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// define BOOST_CHRONO_SOURCE so that <boost/filesystem/config.hpp> knows
// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
// the library is being built (possibly exporting rather than importing code)
#define BOOST_CHRONO_SOURCE
#ifndef BOOST_CHRONO_SOURCE
# define BOOST_CHRONO_SOURCE
#endif
#include <boost/chrono/detail/inlined/chrono.hpp>

View File

@ -12,7 +12,9 @@
// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
// the library is being built (possibly exporting rather than importing code)
#define BOOST_CHRONO_SOURCE
#ifndef BOOST_CHRONO_SOURCE
# define BOOST_CHRONO_SOURCE
#endif
#include <boost/chrono/detail/inlined/process_cpu_clocks.hpp>

View File

@ -13,7 +13,9 @@
// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
// the library is being built (possibly exporting rather than importing code)
#define BOOST_CHRONO_SOURCE
#ifndef BOOST_CHRONO_SOURCE
# define BOOST_CHRONO_SOURCE
#endif
#include <boost/chrono/detail/inlined/thread_clock.hpp>