summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-07-17 10:05:19 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-07-17 10:05:19 (GMT)
commitdacb5c4bb756794788e75288e0d765f437d5d264 (patch)
tree5de5532dbef22883837252a19022319b385de69d /cmake
parent14c4cd2dcc78a620bccd29d665e192e6dfcdaed9 (diff)
downloadlibkolabxml-dacb5c4bb756794788e75288e0d765f437d5d264.tar.gz
Replaced non-free uri encoding code with libcurl.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindLibkolabxmlDependencies.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/modules/FindLibkolabxmlDependencies.cmake b/cmake/modules/FindLibkolabxmlDependencies.cmake
index 84c2de6..66eefd6 100644
--- a/cmake/modules/FindLibkolabxmlDependencies.cmake
+++ b/cmake/modules/FindLibkolabxmlDependencies.cmake
@@ -30,6 +30,13 @@ endif()
find_package_handle_standard_args(Xerces DEFAULT_MSG
XERCES_C XERCES_C_INCLUDE_DIRS)
+find_library(CURL NAMES curl)
+if (CURL)
+ find_path(CURL_INCLUDE_DIRS NAMES curl/curl.h)
+endif()
+find_package_handle_standard_args(Curl DEFAULT_MSG
+ CURL CURL_INCLUDE_DIRS)
+
find_program(SWIG swig /usr/bin/)
if(SWIG)
set(SWIG_FOUND ON)
@@ -44,4 +51,4 @@ endif()
#abort if any of the requireds are missing
find_package_handle_standard_args(LibkolabxmlDependencies DEFAULT_MSG
- UUID_LIBRARY_FOUND XSDCXX XERCES_C)
+ UUID_LIBRARY_FOUND XSDCXX XERCES_C CURL)