|
|
|
@ -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" )
|
|
|
|
|
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_058 "" CACHE INTERNAL "" FORCE )
|
|
|
|
|
message( STATUS "Performing Test HAVE_POPPLER_058 - Failed" )
|
|
|
|
|
set( HAVE_POPPLER_${_poppler_str} "" CACHE INTERNAL "" FORCE )
|
|
|
|
|
message( STATUS "Performing Test HAVE_POPPLER_${_poppler_str} - Failed" )
|
|
|
|
|
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( )
|
|
|
|
|