From e2a63248399aaff5605316702f9085ceda0ef8c5 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Sat, 13 Dec 2008 19:40:31 +0100 Subject: Moved libxml2 check from edb-sqlite to the global CMakeLists.txt --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e6eaa5e..2e84238 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,14 @@ IF(EUREPHIADM) SET(ADMIN_ENABLED on) ENDIF(EUREPHIADM) +IF(ADMIN_ENABLED) + find_package(PkgConfig) + pkg_search_module(LIBXML2 REQUIRED libxml-2.0 libxml2 libxml>=2.6) + INCLUDE_DIRECTORIES(BEFORE ${LIBXML2_INCLUDE_DIRS}) + ADD_DEFINITIONS(-DHAVE_LIBXML2) + SET(EXTRA_LIBS ${LIBXML2_LIBRARIES}) +ENDIF(ADMIN_ENABLED) + IF(NOT DATABASE) message(FATAL_ERROR "Cannot build eurephia without any database drivers.") ENDIF(NOT DATABASE) -- cgit