Update CMakeLists.txt
Co-authored-by: Mathis Logemann <mathisloge@gmail.com>
This commit is contained in:
parent
be0b537f52
commit
d680d1d7f5
1 changed files with 3 additions and 1 deletions
|
@ -156,7 +156,9 @@ mapnik_find_threads()
|
|||
mapnik_find_package(ICU REQUIRED COMPONENTS uc i18n data)
|
||||
|
||||
mapnik_find_package(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS regex)
|
||||
|
||||
if(CMAKE_CXX_STANDARD LESS 17)
|
||||
set(USE_BOOST_FILESYSTEM ON)
|
||||
endif()
|
||||
if(CMAKE_CXX_STANDARD LESS 17 OR USE_BOOST_FILESYSTEM)
|
||||
mapnik_find_package(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS filesystem system)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue