Skip to content

Commit

Permalink
#16717: When poppler 22.01.0 is found, error out from CMake generation
Browse files Browse the repository at this point in the history
when C++ standard is less than C++17


git-svn-id: svn://scribus.net/trunk/Scribus@24799 11d20701-8431-0410-a711-e3c959e3b870
  • Loading branch information
Craig Bradney committed Jan 9, 2022
1 parent 689b700 commit 0b1abef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists_Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,13 @@ if (poppler_FOUND)
message(STATUS "Found poppler")
message(STATUS "Found poppler libs: ${poppler_LIBRARY}")
message(STATUS "Found poppler includes: ${poppler_INCLUDE_DIR}")
if (poppler_VERSION VERSION_GREATER_EQUAL 22.01.0)
message(STATUS "Poppler Version:" ${poppler_VERSION})
message(STATUS "C++17 is the minimum C++ standard since poppler 22.01.0")
if (CMAKE_CXX_STANDARD LESS 17)
message(FATAL_ERROR "Please set -DWANT_CPP17=ON on your CMake command line")
endif()
endif()
else()
message(FATAL_ERROR "Could not find poppler library")
endif()
Expand Down

0 comments on commit 0b1abef

Please sign in to comment.