fix log4cpp detection

This commit is contained in:
mpromonet 2019-03-02 14:11:48 +00:00
parent 3c0dd01a7b
commit 368a5afeb0

View File

@ -57,9 +57,9 @@ endif()
# LOG4CPP
find_package(log4cpp QUIET)
if (LOG4CPP_LIBRARY)
message(STATUS "Log4Cpp available")
add_definitions(-DHAVE_LOG4CPP)
include_directories(${LOG4CPP_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} "${LOG4CPP_LIBRARY}")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}liblog4cpp5-dev,)