Skip to content

Commit

Permalink
Update RootMacros.cmake
Browse files Browse the repository at this point in the history
Allow dictionary files to be created in subdirectories. This was working earlier and is broken now. As there is no way to define othe output directory, providing the dictionary with path is the only way to achieve that.
  • Loading branch information
rtlprmft authored and oshadura committed Sep 14, 2020
1 parent 8d5b55f commit e2d7124
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/modules/RootMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
target_include_directories(${dictionary} PRIVATE
${incdirs} $<TARGET_PROPERTY:${ARG_MODULE},INCLUDE_DIRECTORIES>)
else()
get_filename_component(dictionary_name ${dictionary} NAME)
add_custom_target(${dictionary} DEPENDS ${dictionary}.cxx ${pcm_name} ${rootmap_name} ${cpp_module_file})
endif()

Expand Down

0 comments on commit e2d7124

Please sign in to comment.