mirror of
https://github.com/boostorg/chrono.git
synced 2025-05-09 23:04:05 +00:00
Regenerate CMakeLists.txt
This commit is contained in:
parent
8745fb542a
commit
0579c7e1e4
@ -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)
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user