comparison Resources/CMake/Log4CPlusConfiguration.cmake @ 101:428784e59dcd

trying to use log4cplus
author jodogne
date Wed, 03 Oct 2012 11:44:46 +0200
parents 27dc762e3dc8
children
comparison
equal deleted inserted replaced
100:27dc762e3dc8 101:428784e59dcd
49 include_directories(${LOG4CPLUS_SOURCES_DIR}/include) 49 include_directories(${LOG4CPLUS_SOURCES_DIR}/include)
50 50
51 source_group(ThirdParty\\Log4Cplus REGULAR_EXPRESSION ${LOG4CPLUS_SOURCES_DIR}/.*) 51 source_group(ThirdParty\\Log4Cplus REGULAR_EXPRESSION ${LOG4CPLUS_SOURCES_DIR}/.*)
52 52
53 else() 53 else()
54 message(FATAL_ERROR "Dynamic log4cplus") 54 CHECK_INCLUDE_FILE_CXX(log4cpp/FileAppender.hh HAVE_LOG4CPLUS_H)
55 55 if (NOT HAVE_LOG4CPLUS_H)
56 message(FATAL_ERROR "Please install the liblog4cpp5-dev package")
57 endif()
58
59 link_libraries(log4cpp)
56 endif() 60 endif()