-
Notifications
You must be signed in to change notification settings - Fork 83
/
FindLog4cxx.cmake
28 lines (24 loc) · 1000 Bytes
/
FindLog4cxx.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ckwg +4
# Copyright 2010 2014 by Kitware, Inc. All Rights Reserved. Please refer to
# KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
# Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
# Locate the system installed Log4cxx
# The following variables will be set:
#
# Log4cxx_FOUND - Set to true if Log4cxx can be found
# Log4cxx_INCLUDE_DIR - The path to the Log4cxx header files
# Log4cxx_LIBRARY - The full path to the Log4cxx library
if( Log4cxx_DIR )
find_package( Log4cxx NO_MODULE )
elseif( NOT Log4cxx_FOUND )
include(CommonFindMacros)
setup_find_root_context(Log4cxx)
find_path( Log4cxx_INCLUDE_DIR log4cxx/logger.h ${Log4cxx_FIND_OPTS})
find_library( Log4cxx_LIBRARY log4cxx ${Log4cxx_FIND_OPTS})
restore_find_root_context(Log4cxx)
include( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( Log4cxx Log4cxx_INCLUDE_DIR Log4cxx_LIBRARY )
if( LOG4CXX_FOUND )
set( Log4cxx_FOUND TRUE )
endif()
endif()