Update CMakeLists.txt

Co-authored-by: Mathis Logemann <mathisloge@gmail.com>
This commit is contained in:
Artem Pavlenko 2023-03-14 16:53:37 +00:00 committed by GitHub
parent a244effa91
commit 49912a423e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,7 +159,7 @@ 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(USE_BOOST_FILESYSTEM)
mapnik_find_package(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS filesystem system)
endif()