diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c1ef558ede3edc7d08860e2753f467f3479099b..78c29c7487401d4cae884921b77024c92013b239 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,10 +167,12 @@ else() endif() if (LOG4CXX_FOUND) - message("Logging : yes") + message("Log4cxx : yes") include_directories(${LOG4CXX_INCLUDE_DIR}) + ADD_DEFINITIONS(-DWITH_LOG4CXX) else() - message(FATAL_ERROR "Logging : no (install log4cxx-devel)") + set(LOG4CXX_LIBRARIES "") + message("Log4cxx : no (install log4cxx-devel)") endif() if (WIN32)