Skip to content

Commit

Permalink
[XrdCeph] Fix include directories of XrdCephTests target
Browse files Browse the repository at this point in the history
CMAKE_SOURCE_DIR refers to XRootD' source directory, so we
need to use PROJECT_SOURCE_DIR within XrdCeph, since it is
its own project.
  • Loading branch information
amadio committed Jun 30, 2023
1 parent 11fa018 commit 18ae3a2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/XrdCeph/tests/XrdCephTests/CMakeLists.txt
@@ -1,8 +1,3 @@
include_directories( ${CPPUNIT_INCLUDE_DIRS} )
include_directories( ${XROOTD_INCLUDE_DIR} )
include_directories( ${RADOS_INCLUDE_DIR} )
include_directories( ${CMAKE_SOURCE_DIR}/src )

message( "XROOTD_INCLUDE_DIR : ${XROOTD_INCLUDE_DIR}" )

add_library(
Expand All @@ -17,6 +12,12 @@ target_link_libraries(
${ZLIB_LIBRARY}
XrdCephPosix )

target_include_directories(XrdCephTests PRIVATE
${CPPUNIT_INCLUDE_DIRS}
${RADOS_INCLUDE_DIR}
${XROOTD_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/src)

#-------------------------------------------------------------------------------
# Install
#-------------------------------------------------------------------------------
Expand Down

0 comments on commit 18ae3a2

Please sign in to comment.