Skip to content

Commit

Permalink
[cmake] Make paths of headers when building G__Core dictionary relative.
Browse files Browse the repository at this point in the history
Core is split differently than the rest of ROOT. We generate the target of
G__Core from within core/base, thus CMAKE_CURRENT_SOURCE_DIR cannot make
headers from the rest of core subfolders relative.
  • Loading branch information
vgvassilev committed Dec 14, 2016
1 parent a15005f commit a5a19c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/modules/RootNewMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
endif()
endforeach()
string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/inc/" "" rheaderfiles "${headerfiles}")
# Replace the non-standard folder layout of Core.
if (ARG_STAGE1 AND ${ARG_MODULE} STREQUAL "Core")
set(core_folders "base|clib|cont|doc|lzma|macosx|meta|metautils|multiproc|newdelete|pcre|rint|textinput|thread|unix|utils|winnt|zip")
string(REGEX REPLACE "${CMAKE_SOURCE_DIR}/core/(${core_folders})/inc/" "" rheaderfiles "${rheaderfiles}")
endif()

#---Get the list of include directories------------------
get_directory_property(incdirs INCLUDE_DIRECTORIES)
if(CMAKE_PROJECT_NAME STREQUAL ROOT)
Expand Down

0 comments on commit a5a19c2

Please sign in to comment.