Skip to content
Snippets Groups Projects
Commit 6a7eb679 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Merge branch 'XRootDFix-20170329' into '1.0'

FindXrootd.cmake fix, 1.0 branch (2017.03.29.)

See merge request !18
parents 8528809b 339866a9
No related branches found
Tags 1.0.6
No related merge requests found
......@@ -19,16 +19,22 @@ include( LCGFunctions )
# Declare the external module:
lcg_external_module( NAME Xrootd
INCLUDE_SUFFIXES include INCLUDE_NAMES xrootd/XrdVersion.hh
LIBRARY_SUFFIXES lib64 LIBRARY_PREFIX Xrd
LIBRARY_SUFFIXES lib lib64 LIBRARY_PREFIX Xrd
DEFAULT_COMPONENTS Utils
EXTRA_OPTIONS NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH )
# Find the xrootd executable, and set up the binary path using it:
find_program( XROOTD_EXECUTABLE xrootd
PATH_SUFFIXES bin PATHS ${XROOTD_ROOT}
NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH )
get_filename_component( XROOTD_BINARY_PATH ${XROOTD_EXECUTABLE} PATH )
# Handle the standard find_package arguments:
include( FindPackageHandleStandardArgs )
find_package_handle_standard_args( Xrootd DEFAULT_MSG XROOTD_INCLUDE_DIR
XROOTD_LIBRARIES )
mark_as_advanced( XROOTD_FOUND XROOTD_INCLUDE_DIR XROOTD_INCLUDE_DIRS
XROOTD_LIBRARIES XROOTD_LIBRARY_DIRS )
XROOTD_LIBRARIES XROOTD_LIBRARY_DIRS XROOTD_EXECUTABLE XROOTD_BINARY_PATH )
# Set up the RPM dependency:
lcg_need_rpm( xrootd )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment