Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cmake/modules/RootMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,14 @@ function(ROOT_GENERATE_DICTIONARY dictionary)

#---Get the library and module dependencies-----------------
# Every dictionary implicitly depends on Core's pcm, except the one for Core itself.
# Only when building ROOT itself: downstream projects have no plain 'Core' target
# (only ROOT::Core), and a bare 'Core' in DEPENDS would be treated as a file.
if(ARG_MODULE AND NOT ARG_MODULE STREQUAL "Core")
list(INSERT ARG_DEPENDENCIES 0 Core)
if(TARGET ROOT::Core)
list(INSERT ARG_DEPENDENCIES 0 ROOT::Core)
elseif(TARGET Core)
list(INSERT ARG_DEPENDENCIES 0 Core)
endif()
list(REMOVE_DUPLICATES ARG_DEPENDENCIES)
endif()
foreach(dep ${ARG_DEPENDENCIES})
Expand Down
Loading