diff --git a/CMakeLists.txt b/CMakeLists.txt index 53186c8d8..eb30a1e26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})