summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-01-03 18:52:32 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-01-03 18:52:53 +0100
commit9d3faa503909ee34a6963172e6f8725a12f554b1 (patch)
tree54aac0d8adf3ed9f24a2e0b423940540b6879c04 /tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
parent5f777126eada93dc139ea0f0e8c9169d541edbbb (diff)
downloadtdegraphics-9d3faa503909ee34a6963172e6f8725a12f554b1.tar.gz
tdegraphics-9d3faa503909ee34a6963172e6f8725a12f554b1.zip
Add support for Poppler >= 0.71.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit aa4563ad7056949864cc41f9088626523d79f5ab)
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake')
-rw-r--r--tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake32
1 files changed, 12 insertions, 20 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake b/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
index 2d2e5136..eab5bcb6 100644
--- a/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
+++ b/tdefile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
@@ -24,24 +24,16 @@ check_cxx_source_compiles("
HAVE_POPPLER_030 )
tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
-if( NOT DEFINED HAVE_POPPLER_058 )
- message( STATUS "Performing Test HAVE_POPPLER_058" )
- if( NOT POPPLER_VERSION VERSION_LESS "0.58" )
- set( HAVE_POPPLER_058 1 CACHE INTERNAL "" FORCE )
- message( STATUS "Performing Test HAVE_POPPLER_058 - Success" )
- else( )
- set( HAVE_POPPLER_058 "" CACHE INTERNAL "" FORCE )
- message( STATUS "Performing Test HAVE_POPPLER_058 - Failed" )
+foreach( _poppler_ver 0.58 0.64 0.70 0.71 )
+ string( REPLACE "." "" _poppler_str "${_poppler_ver}" )
+ if( NOT DEFINED HAVE_POPPLER_${_poppler_str} )
+ message( STATUS "Performing Test HAVE_POPPLER_${_poppler_str}" )
+ if( NOT POPPLER_VERSION VERSION_LESS "${_poppler_ver}" )
+ set( HAVE_POPPLER_${_poppler_str} 1 CACHE INTERNAL "" FORCE )
+ message( STATUS "Performing Test HAVE_POPPLER_${_poppler_str} - Success" )
+ else( )
+ set( HAVE_POPPLER_${_poppler_str} "" CACHE INTERNAL "" FORCE )
+ message( STATUS "Performing Test HAVE_POPPLER_${_poppler_str} - Failed" )
+ endif( )
endif( )
-endif( )
-
-if( NOT DEFINED HAVE_POPPLER_064 )
- message( STATUS "Performing Test HAVE_POPPLER_064" )
- if( NOT POPPLER_VERSION VERSION_LESS "0.64" )
- set( HAVE_POPPLER_064 1 CACHE INTERNAL "" FORCE )
- message( STATUS "Performing Test HAVE_POPPLER_064 - Success" )
- else( )
- set( HAVE_POPPLER_064 "" CACHE INTERNAL "" FORCE )
- message( STATUS "Performing Test HAVE_POPPLER_064 - Failed" )
- endif( )
-endif( )
+endforeach( )