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

trying to use log4cplus
author jodogne
date Wed, 03 Oct 2012 11:44:46 +0200
parents 27dc762e3dc8
children
line wrap: on
line diff
--- a/Resources/CMake/Log4CPlusConfiguration.cmake	Wed Oct 03 09:33:25 2012 +0200
+++ b/Resources/CMake/Log4CPlusConfiguration.cmake	Wed Oct 03 11:44:46 2012 +0200
@@ -51,6 +51,10 @@
   source_group(ThirdParty\\Log4Cplus REGULAR_EXPRESSION ${LOG4CPLUS_SOURCES_DIR}/.*)
 
 else()
-  message(FATAL_ERROR "Dynamic log4cplus")
-  
+  CHECK_INCLUDE_FILE_CXX(log4cpp/FileAppender.hh HAVE_LOG4CPLUS_H)
+  if (NOT HAVE_LOG4CPLUS_H)
+    message(FATAL_ERROR "Please install the liblog4cpp5-dev package")
+  endif()
+
+  link_libraries(log4cpp)
 endif()