diff --git a/libsyclinterface/CMakeLists.txt b/libsyclinterface/CMakeLists.txt index 6beed813a8..e63c992acb 100644 --- a/libsyclinterface/CMakeLists.txt +++ b/libsyclinterface/CMakeLists.txt @@ -214,13 +214,9 @@ file(GLOB MAIN_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h") file(GLOB SUPPORT_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/Support/*.h") file(GLOB CONFIG_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/Config/*.h") -set(ALL_HEADERS "${MAIN_HEADERS}") -list(APPEND ALL_HEADERS "${SUPPORT_HEADERS}") -list(APPEND ALL_HEADERS "${CONFIG_HEADERS}") - set_target_properties(DPCTLSyclInterface PROPERTIES PUBLIC_HEADER - "${ALL_HEADERS}" + "${MAIN_HEADERS}" ) if (SKBUILD)