summaryrefslogtreecommitdiff
path: root/cmake/Modules/FindLog4cpp.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/FindLog4cpp.cmake')
-rw-r--r--cmake/Modules/FindLog4cpp.cmake23
1 files changed, 9 insertions, 14 deletions
diff --git a/cmake/Modules/FindLog4cpp.cmake b/cmake/Modules/FindLog4cpp.cmake
index 0b7208630f..fc314c61a5 100644
--- a/cmake/Modules/FindLog4cpp.cmake
+++ b/cmake/Modules/FindLog4cpp.cmake
@@ -23,19 +23,17 @@ find_library(LOG4CPP_LIBRARY
PATHS /usr/lib /usr/local/lib /opt/local/lib
)
-message("#####################")
-message("LOG INCLEUDE :${LOG4CPP_INCLUDE_DIR}")
-message("LOG LIBRARY :${LOG4CPP_LIBRARY}")
-
-
-message("#####################")
if (LOG4CPP_INCLUDE_DIR AND LOG4CPP_LIBRARY)
set(LOG4CPP_FOUND TRUE)
- set(LOG4CPP_LIBRARIES ${LOG4CPP_LIBRARY} )
+ set(LOG4CPP_LIBRARIES ${LOG4CPP_LIBRARY} CACHE INTERNAL "" FORCE)
+ set(LOG4CPP_INCLUDE_DIRS ${LOG4CPP_INCLUDE_DIR} CACHE INTERNAL "" FORCE)
else ()
- set(LOG4CPP_FOUND FALSE)
- set(LOG4CPP_LIBRARIES )
+ set(LOG4CPP_FOUND FALSE CACHE INTERNAL "" FORCE)
+ set(LOG4CPP_LIBRARY "" CACHE INTERNAL "" FORCE)
+ set(LOG4CPP_LIBRARIES "" CACHE INTERNAL "" FORCE)
+ set(LOG4CPP_INCLUDE_DIR "" CACHE INTERNAL "" FORCE)
+ set(LOG4CPP_INCLUDE_DIRS "" CACHE INTERNAL "" FORCE)
endif ()
if (LOG4CPP_FOUND)
@@ -49,10 +47,7 @@ else ()
endif ()
endif ()
-message("internal libs: ${LOG4CPP_LIBRARIES}")
-
mark_as_advanced(
- LOG4CPP_LIBRARY
LOG4CPP_LIBRARIES
- LOG4CPP_INCLUDE_DIR
- )
+ LOG4CPP_INCLUDE_DIRS
+)