Skip to content

Commit

Permalink
When building as a submodule, dependencies on libraries in the main
Browse files Browse the repository at this point in the history
package should use target names rather than paths.

If paths are used, cmake does not handle dependencies between targets
and may attempt to build them in the wrong order:

gmake[2]: *** No rule to make target 'src/libXrdUtils.so', needed by
'src/XrdCeph/src/libXrdCephPosix.so.0.0.1'.  Stop.
  • Loading branch information
ellert committed Feb 25, 2021
1 parent 2796513 commit 534d9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindXRootD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

if( XRDCEPH_SUBMODULE )
set( XROOTD_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/src )
set( XROOTD_LIBRARIES ${CMAKE_BINARY_DIR}/src/libXrdUtils.so )
set( XROOTD_LIBRARIES XrdUtils )
else()
find_path( XROOTD_INCLUDE_DIRS XrdSfs/XrdSfsAio.hh
HINTS
Expand Down

0 comments on commit 534d9c0

Please sign in to comment.