Update CMakeLists.txt

Co-authored-by: Mathis Logemann <mathisloge@gmail.com>
This commit is contained in:
Artem Pavlenko 2023-03-09 21:14:28 +00:00 committed by GitHub
parent be0b537f52
commit d680d1d7f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,7 +156,9 @@ mapnik_find_threads()
mapnik_find_package(ICU REQUIRED COMPONENTS uc i18n data) mapnik_find_package(ICU REQUIRED COMPONENTS uc i18n data)
mapnik_find_package(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS regex) 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) if(CMAKE_CXX_STANDARD LESS 17 OR USE_BOOST_FILESYSTEM)
mapnik_find_package(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS filesystem system) mapnik_find_package(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS filesystem system)
endif() endif()