Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
fdb20e47
Commit
fdb20e47
authored
16 years ago
by
Martin Gels
Browse files
Options
Downloads
Patches
Plain Diff
bug 1005: Added file: FindLog4CPlus.cmake
parent
96e63b1d
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitattributes
+1
-0
1 addition, 0 deletions
.gitattributes
cmake/FindLog4CPlus.cmake
+91
-0
91 additions, 0 deletions
cmake/FindLog4CPlus.cmake
with
92 additions
and
0 deletions
.gitattributes
+
1
−
0
View file @
fdb20e47
...
...
@@ -1191,6 +1191,7 @@ cmake/FindGlobus.cmake -text
cmake/FindHDF5.cmake -text
cmake/FindLAPACK.cmake -text
cmake/FindLibxml2.cmake -text
cmake/FindLog4CPlus.cmake -text
cmake/FindMatlab.cmake -text
cmake/FindMySQL.cmake -text
cmake/FindNumarray.cmake -text
...
...
This diff is collapsed.
Click to expand it.
cmake/FindLog4CPlus.cmake
0 → 100644
+
91
−
0
View file @
fdb20e47
# +-----------------------------------------------------------------------------+
# | $Id:: IO.h 393 2007-06-13 10:49:08Z gels $ |
# +-----------------------------------------------------------------------------+
# | Copyright (C) 2007 |
# | Martin Gels (gels@astron.nl) |
# | |
# | This program is free software; you can redistribute it and/or modify |
# | it under the terms of the GNU General Public License as published by |
# | the Free Software Foundation; either version 2 of the License, or |
# | (at your option) any later version. |
# | |
# | This program is distributed in the hope that it will be useful, |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# | GNU General Public License for more details. |
# | |
# | You should have received a copy of the GNU General Public License |
# | along with this program; if not, write to the |
# | Free Software Foundation, Inc., |
# | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
# +-----------------------------------------------------------------------------+
# Check for the presence of log4CPlus (LOG4CPLUS).
#
# The following variables are set when LOG4CPLUS is found:
# HAVE_LOG4CPLUS = Set to true, if all components of LOG4CPLUS have been found.
# LOG4CPLUS_INCLUDES = Include path for the header files of LOG4CPLUS
# LOG4CPLUS_LIBRARIES = Link these to use LOG4CPLUS
# LOG4CPLUS_LFGLAS = Linker flags (optional)
## -----------------------------------------------------------------------------
## Search locations
include
(
CMakeSettings
)
## -----------------------------------------------------------------------------
## Check for the header files
find_path
(
LOG4CPLUS_INCLUDES log4cplus/logger.h
PATHS
${
include_locations
}
/usr/local/log4cplus/gnu/include
NO_DEFAULT_PATH
)
get_filename_component
(
LOG4CPLUS_INCLUDES
${
LOG4CPLUS_INCLUDES
}
ABSOLUTE
)
## -----------------------------------------------------------------------------
## Check for the library
find_library
(
LOG4CPLUS_LIBRARIES liblog4cplus.so
PATHS
${
lib_locations
}
/usr/local/log4cplus/gnu/lib64/
NO_DEFAULT_PATH
)
## -----------------------------------------------------------------------------
## Actions taken when all components have been found
if
(
LOG4CPLUS_INCLUDES AND LOG4CPLUS_LIBRARIES
)
set
(
HAVE_LOG4CPLUS TRUE
)
else
(
LOG4CPLUS_INCLUDES AND LOG4CPLUS_LIBRARIES
)
set
(
HAVE_LOG4CPLUS FALSE
)
if
(
NOT LOG4CPLUS_FIND_QUIETLY
)
if
(
NOT LOG4CPLUS_INCLUDES
)
message
(
STATUS
"Unable to find LOG4CPLUS header files!"
)
endif
(
NOT LOG4CPLUS_INCLUDES
)
if
(
NOT LOG4CPLUS_LIBRARIES
)
message
(
STATUS
"Unable to find LOG4CPLUS library files!"
)
endif
(
NOT LOG4CPLUS_LIBRARIES
)
endif
(
NOT LOG4CPLUS_FIND_QUIETLY
)
endif
(
LOG4CPLUS_INCLUDES AND LOG4CPLUS_LIBRARIES
)
if
(
HAVE_LOG4CPLUS
)
if
(
NOT LOG4CPLUS_FIND_QUIETLY
)
message
(
STATUS
"Found components for LOG4CPLUS"
)
message
(
STATUS
"LOG4CPLUS_INCLUDES =
${
LOG4CPLUS_INCLUDES
}
"
)
message
(
STATUS
"LOG4CPLUS_LIBRARIES =
${
LOG4CPLUS_LIBRARIES
}
"
)
endif
(
NOT LOG4CPLUS_FIND_QUIETLY
)
else
(
HAVE_LOG4CPLUS
)
if
(
LOG4CPLUS_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find LOG4CPLUS!"
)
endif
(
LOG4CPLUS_FIND_REQUIRED
)
endif
(
HAVE_LOG4CPLUS
)
## -----------------------------------------------------------------------------
## Mark advanced variables
mark_as_advanced
(
LOG4CPLUS_INCLUDES
LOG4CPLUS_LIBRARIES
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment