diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-12-31 18:09:36 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-12-31 18:09:36 +0100 |
commit | 0be70a290dfe9228cbbe2702132f77f41bdbf962 (patch) | |
tree | ebe49849556f3b820803dd8d3965d2912b089fe2 | |
parent | b02e2db0712f943ad794d98a6e9c01378860960a (diff) | |
download | eurephia-0be70a290dfe9228cbbe2702132f77f41bdbf962.tar.gz eurephia-0be70a290dfe9228cbbe2702132f77f41bdbf962.tar.xz eurephia-0be70a290dfe9228cbbe2702132f77f41bdbf962.zip |
Explicit set library path for libxml2 and libxslt libraries
On some platforms, CMake did not give this needed information to
the linker.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c5ba828..ab21b37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -137,12 +137,14 @@ IF(ADMIN_ENABLED) # Check for libxml2 pkg_search_module(LIBXML2 REQUIRED libxml-2.0 libxml2 libxml>=2.6) INCLUDE_DIRECTORIES(BEFORE ${LIBXML2_INCLUDE_DIRS}) + LINK_DIRECTORIES(${LIBXML2_LIBRARY_DIRS}) ADD_DEFINITIONS(-DHAVE_LIBXML2) SET(EXTRA_LIBS ${EXTRA_LIBS} ${LIBXML2_LIBRARIES}) # Check for libxslt pkg_search_module(LIBXSLT REQUIRED libxslt) INCLUDE_DIRECTORIES(BEFORE ${LIBXSLT_INCLUDE_DIRS}) + LINK_DIRECTORIES(${LIBXSLT_LIBRARY_DIRS}) ADD_DEFINITIONS(-DHAVE_LIBXSLT) SET(EXTRA_LIBS ${EXTRA_LIBS} ${LIBXSLT_LIBRARIES}) |