diff options
author | Slávek Banko <[email protected]> | 2022-10-13 01:55:18 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2022-10-13 01:55:18 +0200 |
commit | f4859ad13cd26b31e44d981bd0d55a9fa19c7aab (patch) | |
tree | 1a3232e62b26a4759483a07417bcbe0b704defe6 /ConfigureChecks.cmake | |
parent | aecfb2bff4ca6ce3624fb7c6f913511ef7a2cdbc (diff) | |
download | tdewebdev-f4859ad13cd26b31e44d981bd0d55a9fa19c7aab.tar.gz tdewebdev-f4859ad13cd26b31e44d981bd0d55a9fa19c7aab.zip |
Remove code to support libxml2 < 2.6.
Enable LIBXML_DOCB_ENABLED independently of the presence
of 'libxml/DOCBparser.h' because from libxml2 >= 2.6 for
docbook files are not used deprecated functions from
DOCBparser, so 'libxml/DOCBparser.h' is not needed.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 6b936f76..6a0e50de 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -64,19 +64,10 @@ if( (BUILD_QUANTA) OR (BUILD_KXSLDBG) OR (BUILD_KLINKSTATUS) ) ##### check for libxml-2.0 - pkg_search_module( LIBXML libxml-2.0 ) + pkg_search_module( LIBXML libxml-2.0>=2.6 ) if( NOT LIBXML_FOUND ) - tde_message_fatal( "libxml-2.0 is required but was not found on your system" ) - elseif( ${LIBXML_VERSION} VERSION_LESS "2.6" ) - tde_message_fatal( "libxml-2.0 version must be, at least, up to 2.6" ) - else() - set( LIBXML_2_5 1 ) - tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES ) - set( CMAKE_REQUIRED_INCLUDES ${LIBXML_INCLUDE_DIRS} ) - set( CMAKE_REQUIRED_LIBRARIES ${LIBXML_LIBRARIES} ) - check_function_exists( xmlSetEntityReferenceFunc HAVE_INCLUDE_FIX ) - tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES ) + tde_message_fatal( "libxml-2.0 version >= 2.6 is required but was not found on your system" ) endif( NOT LIBXML_FOUND ) @@ -128,7 +119,7 @@ if( (BUILD_QUANTA) OR (BUILD_KXSLDBG) OR (BUILD_KLINKSTATUS) ) tde_save( CMAKE_REQUIRED_INCLUDES ) set( CMAKE_REQUIRED_INCLUDES ${LIBXML_INCLUDE_DIRS} ) - check_include_file( "libxml/DOCBparser.h" LIBXML_DOCB_ENABLED ) + set( LIBXML_DOCB_ENABLED 1 CACHE BOOL "Enable docbook input files" ) check_include_file( "libxml/xinclude.h" LIBXML_XINCLUDE_ENABLED ) tde_restore( CMAKE_REQUIRED_INCLUDES ) |