File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,15 @@ function(build_shared_library TARGET)
112
112
set (DICT_FILE "${CMAKE_CURRENT_BINARY_DIR} /lib${TARGET} _dict" )
113
113
set (BDM_DICT_FILE "${CMAKE_CURRENT_BINARY_DIR} /lib${TARGET} _bdm_dict.cc" )
114
114
set (module "${TARGET} _dict" )
115
+ string (REPLACE "${CMAKE_SOURCE_DIR} /src/" "" ROOT_HEADERS "${ARG_HEADERS} " )
115
116
116
117
# Since the location of the CMake files differ in the build and installation
117
118
# directory, we check if BDM_CMAKE_DIR is already set (in build directory
118
119
# case). Otherwise, set it to the installation directory
119
120
if (NOT DEFINED BDM_CMAKE_DIR )
120
121
set (BDM_CMAKE_DIR $ENV{BDMSYS} /share/cmake )
121
122
endif ()
122
- ROOT_GENERATE_DICTIONARY (${DICT_FILE} ${ARG_HEADERS } MODULE ${module} LINKDEF ${BDM_CMAKE_DIR} /${ARG_SELECTION} REFLEX OPTIONS --noIncludePaths --inlineInputHeader )
123
+ ROOT_GENERATE_DICTIONARY (${DICT_FILE} ${ROOT_HEADERS } MODULE ${module} LINKDEF ${BDM_CMAKE_DIR} /${ARG_SELECTION} REFLEX OPTIONS -I src --noIncludePaths --inlineInputHeader )
123
124
if (BDM_OUT_OF_SOURCE )
124
125
set (BDM_DICT_BIN_PATH "$ENV{BDMSYS} /bin" )
125
126
else ()
You can’t perform that action at this time.
0 commit comments