diff --git a/cmake/modules/RootNewMacros.cmake b/cmake/modules/RootNewMacros.cmake index 9a1fed0ab4651d6a44218336ca2e953a6826bd19..0cebb805a2360460b0125331ffa5a57f7ac3a958 100644 --- a/cmake/modules/RootNewMacros.cmake +++ b/cmake/modules/RootNewMacros.cmake @@ -246,7 +246,7 @@ function(ROOT_GENERATE_DICTIONARY dictionary) 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") + 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()