From 98954984a4b55d01380bd8f18c884dc8519133ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 10 Jun 2017 23:59:48 +0200 Subject: [PATCH] Avoid link-time chrono dependencies timer used to be independent from chrono. The tiny dependency used in the implementation can be isolated defining BOOST_CHRONO_HEADER_ONLY --- src/cpu_timer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cpu_timer.cpp b/src/cpu_timer.cpp index 49a6174..a284e48 100644 --- a/src/cpu_timer.cpp +++ b/src/cpu_timer.cpp @@ -13,6 +13,10 @@ // the library is being built (possibly exporting rather than importing code) #define BOOST_TIMER_SOURCE +// define BOOST_CHRONO_HEADER_ONLY so that chrono dependencies are not +// propagated to library users +#define BOOST_CHRONO_HEADER_ONLY + #include #include #include