Commit ee59e054 authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

Fix how we find librec

parent 488994fc
# 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 LIBXML2_FOUND to TRUE
# handle the QUIETLY and REQUIRED arguments and set LIBREC_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(LIBREC DEFAULT_MSG
find_package_handle_standard_args(LibRec DEFAULT_MSG
LIBREC_LIBRARY LIBREC_INCLUDE_DIR)
mark_as_advanced(LIBREC_INCLUDE_DIR LIBREC_LIBRARY )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment