Skip to content

Commit

Permalink
[SYCL] [NATIVECPU] Add OCK subdirectory with EXCLUDE_FROM_ALL (#12579)
Browse files Browse the repository at this point in the history
Adding `EXCLUDE_FROM_ALL` to the `add_subdirectory` for the OneAPI
Construction Kit, in order to to avoid building its components unless
they are required by the SYCL toolchain.
  • Loading branch information
PietroGhg authored Feb 2, 2024
1 parent 8bfc56f commit 71eee2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sycl/plugins/native_cpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if(NATIVECPU_USE_OCK)
FetchContent_Populate(oneapi-ck)
message(STATUS "oneAPI Construction Kit cloned in ${oneapi-ck_SOURCE_DIR}")
set(CA_NATIVE_CPU 1)
add_subdirectory(${oneapi-ck_SOURCE_DIR} ${oneapi-ck_BINARY_DIR})
add_subdirectory(${oneapi-ck_SOURCE_DIR} ${oneapi-ck_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
target_compile_definitions(LLVMSYCLLowerIR PRIVATE NATIVECPU_USE_OCK)
target_include_directories(LLVMSYCLLowerIR PRIVATE
Expand Down

0 comments on commit 71eee2c

Please sign in to comment.