Removed duplicated definition for VCARD_ENABLED + fixed FindBelcard

This commit is contained in:
Sylvain Berfini 2015-12-22 17:13:01 +01:00
parent f684e15247
commit 29715bd4ee
2 changed files with 1 additions and 3 deletions

View file

@ -176,8 +176,6 @@ if (ENABLE_VCARD)
if(NOT BELCARD_FOUND)
message(WARNING "Could not find the belcard library!")
set(ENABLE_VCARD OFF CACHE BOOL "Enable vcard support." FORCE)
else()
add_definitions("-DVCARD_ENABLED")
endif()
endif()

View file

@ -33,7 +33,7 @@ set(_BELCARD_ROOT_PATHS
find_path(BELCARD_INCLUDE_DIRS
NAMES belcard.hpp
HINTS _BELCARD_ROOT_PATHS
PATH_SUFFIXES include
PATH_SUFFIXES include/belcard
)
if(BELCARD_INCLUDE_DIRS)