From 50032d2a738b3b9cf5b579b88c24ce031f69a7e4 Mon Sep 17 00:00:00 2001 From: Vaclav Blazek Date: Wed, 31 Mar 2021 17:16:44 +0200 Subject: [PATCH] updated for future boost version --- mapproxy/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mapproxy/CMakeLists.txt b/mapproxy/CMakeLists.txt index 44110b5..bb229b6 100644 --- a/mapproxy/CMakeLists.txt +++ b/mapproxy/CMakeLists.txt @@ -11,10 +11,17 @@ enable_OpenMP() find_package(Boost 1.46 REQUIRED COMPONENTS thread program_options filesystem system date_time - serialization regex chrono iostreams) + serialization regex chrono iostreams) link_directories(${Boost_LIBRARY_DIRS}) include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) +if(${Boost_VERSION_MAJOR}.${Boost_VERSION_MINOR} VERSION_GREATER_EQUAL 1.73) + # Since Boost.Python and Boost.Iostreams in Boost >=1.73 still include + # deprecated headers we need to silence compiler + add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS + -DBOOST_ALLOW_DEPRECATED_HEADERS) +endif() + find_package(OpenCV REQUIRED) find_package(GDAL REQUIRED)