Commit 7f6c61f3 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Updated CMakefile for vCard & belcard

parent 06b099d1
......@@ -172,7 +172,11 @@ if(ENABLE_LIME)
set(HAVE_LIME 1)
endif()
if (ENABLE_VCARD)
find_package(Belcard REQUIRED)
find_package(Belcard)
if(NOT BELCARD_FOUND)
message(WARNING "Could not find the belcard library!")
set(ENABLE_VCARD OFF CACHE BOOL "Enable vcard support." FORCE)
endif()
endif()
if(UNIX AND NOT APPLE)
......@@ -193,6 +197,9 @@ include_directories(
if(ENABLE_TUNNEL)
include_directories(${TUNNEL_INCLUDE_DIRS})
endif()
if (ENABLE_VCARD)
include_directories(${BELCARD_INCLUDE_DIRS})
endif()
include_directories(${XML2_INCLUDE_DIRS})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment