Skip to content

Commit db6b953

Browse files
Include all headers in PUBLIC_HEADER property of the library
1 parent 5e26e5d commit db6b953

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libsyclinterface/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,13 @@ file(GLOB MAIN_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h")
214214
file(GLOB SUPPORT_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/Support/*.h")
215215
file(GLOB CONFIG_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/Config/*.h")
216216

217+
set(ALL_HEADERS "${MAIN_HEADERS}")
218+
list(APPEND ALL_HEADERS "${SUPPORT_HEADERS}")
219+
list(APPEND ALL_HEADERS "${CONFIG_HEADERS}")
220+
217221
set_target_properties(DPCTLSyclInterface
218222
PROPERTIES PUBLIC_HEADER
219-
"${MAIN_HEADERS}"
223+
"${ALL_HEADERS}"
220224
)
221225

222226
if (SKBUILD)

0 commit comments

Comments
 (0)