Skip to content

Commit

Permalink
[CMake] Add XROOTD_PLUGIN_VERSION to FindXRootD.cmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jan 21, 2020
1 parent 968eeb7 commit 2eb5c5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -63,8 +63,11 @@ include( XRootDSummary )
#-------------------------------------------------------------------------------
# Install FindXRootD.cmake module
#-------------------------------------------------------------------------------

configure_file( "cmake/FindXRootD.cmake.in" "cmake/FindXRootD.cmake" @ONLY )

install(
FILES ${CMAKE_SOURCE_DIR}/cmake/FindXRootD.cmake
FILES ${CMAKE_BINARY_DIR}/cmake/FindXRootD.cmake
DESTINATION ${CMAKE_INSTALL_DATADIR}/xrootd/cmake )

#-------------------------------------------------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions cmake/FindXRootD.cmake → cmake/FindXRootD.cmake.in
Expand Up @@ -211,6 +211,13 @@ IF( XRootD_FIND_REQUIRED_SSI AND NOT XROOTD_SSI_FOUND )
UNSET( XROOTD_FOUND )
ENDIF()

################################################################################
# Utility variables for plug-in development
################################################################################
IF( XROOTD_FOUND )
SET( XROOTD_PLUGIN_VERSION, @PLUGIN_VERSION@ )
ENDIF()

################################################################################
# Set up the XRootD find module
################################################################################
Expand Down

0 comments on commit 2eb5c5e

Please sign in to comment.