Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
updated for future boost version
Browse files Browse the repository at this point in the history
  • Loading branch information
vaclavblazek committed Mar 31, 2021
1 parent d860193 commit 50032d2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mapproxy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50032d2

Please sign in to comment.