diff options
author | Slávek Banko <[email protected]> | 2022-04-01 15:19:29 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2022-04-01 15:19:29 +0200 |
commit | 3c919351327ed35d2ad13a62d8d5aefccfed36a6 (patch) | |
tree | 5ce8c8cc6c6562b3644147abfdf4ef8ea8e87082 /tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake | |
parent | 37a6812fbebc918b17506cf6d51e3556c8cdc609 (diff) | |
download | tdegraphics-3c919351327ed35d2ad13a62d8d5aefccfed36a6.tar.gz tdegraphics-3c919351327ed35d2ad13a62d8d5aefccfed36a6.zip |
Ensure the use of C++17 standard for Poppler >= 21.12.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake')
-rw-r--r-- | tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake b/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake index 78f6ffbc..fa82dd3c 100644 --- a/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake +++ b/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake @@ -24,7 +24,7 @@ check_cxx_source_compiles(" HAVE_POPPLER_030 ) tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES ) -foreach( _poppler_ver 0.58 0.64 0.70 0.71 0.72 0.76 0.82 0.83 0.86 21.08 21.11 ) +foreach( _poppler_ver 0.58 0.64 0.70 0.71 0.72 0.76 0.82 0.83 0.86 21.08 21.11 21.12 ) string( REPLACE "." "" _poppler_str "${_poppler_ver}" ) if( NOT DEFINED HAVE_POPPLER_${_poppler_str} ) message( STATUS "Performing Test HAVE_POPPLER_${_poppler_str}" ) @@ -37,3 +37,7 @@ foreach( _poppler_ver 0.58 0.64 0.70 0.71 0.72 0.76 0.82 0.83 0.86 21.08 21.11 ) endif( ) endif( ) endforeach( ) + +if( HAVE_POPPLER_2112 ) + set( POPPLER_CXX_FEATURES cxx_std_17 CACHE INTERNAL "C++ standard required by Poppler" ) +endif() |