Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pmtool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
0
Merge Requests
0
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
EYRAUD-DUBOIS Lionel
pmtool
Commits
ee59e054
Commit
ee59e054
authored
Nov 04, 2019
by
EYRAUD-DUBOIS Lionel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix how we find librec
parent
488994fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
FindLibRec.cmake
FindLibRec.cmake
+3
-11
No files found.
FindLibRec.cmake
View file @
ee59e054
# This module finds librec.
#
# User can give LIBREC_
ROOT
_DIR as a hint stored in the cmake cache.
# User can give LIBREC_
INSTALL
_DIR as a hint stored in the cmake cache.
#
# It sets the following variables:
# LIBREC_FOUND - Set to false, or undefined, if librec isn't found.
# LIBREC_INCLUDE_DIRS - include directory
# LIBREC_LIBRARIES - library files
# include(LibFindMacros)
# Dependencies
# libfind_package(Magick++ Magick)
# Use pkg-config to get hints about paths
# libfind_pkg_check_modules(librec_PKGCONF ImageMagick++)
set
(
LIBREC_INSTALL_DIR
""
CACHE PATH
"Librec install directory"
)
...
...
@@ -35,11 +28,10 @@ find_library(LIBREC_LIBRARY
message
(
STATUS
"librec library:
${
LIBREC_LIBRARY
}
"
)
include
(
FindPackageHandleStandardArgs
)
# handle the QUIETLY and REQUIRED arguments and set LIB
XML2
_FOUND to TRUE
# handle the QUIETLY and REQUIRED arguments and set LIB
REC
_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args
(
L
IBREC
DEFAULT_MSG
find_package_handle_standard_args
(
L
ibRec
DEFAULT_MSG
LIBREC_LIBRARY LIBREC_INCLUDE_DIR
)
mark_as_advanced
(
LIBREC_INCLUDE_DIR LIBREC_LIBRARY
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment