summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-05-13 02:26:38 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-05-13 02:27:56 +0200
commit6363c102883cd478d12b410a12ad5eab6e584228 (patch)
treedd916e6e288a54ba5873fd0da8c9d0f1deeb8807
parent2a49f484839e646c0f0737cbd6a7561bebaada4c (diff)
downloadtdegraphics-master.tar.gz
tdegraphics-master.zip
Ensure the use of C++20 standard for Poppler >= 24.04.HEADmaster
This resolves issue #96. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake b/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
index 99a48c8e..41cef754 100644
--- a/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
+++ b/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
@@ -14,6 +14,8 @@ set( POPPLER_VERSION_PATCH ${CMAKE_MATCH_3} )
math( EXPR POPPLER_VERSION_C "(${POPPLER_VERSION_MAJOR}*1000000) + (${POPPLER_VERSION_MINOR}*1000) + ${POPPLER_VERSION_PATCH}" )
set( POPPLER_VERSION_C ${POPPLER_VERSION_C} CACHE INTERNAL "Poppler library version as code number" )
-if( NOT POPPLER_VERSION_C LESS 21012000 )
+if( NOT POPPLER_VERSION_C LESS 24004000 )
+ set( POPPLER_CXX_FEATURES cxx_std_20 CACHE INTERNAL "C++ standard required by Poppler" )
+elseif( NOT POPPLER_VERSION_C LESS 21012000 )
set( POPPLER_CXX_FEATURES cxx_std_17 CACHE INTERNAL "C++ standard required by Poppler" )
endif()