Skip to content

Commit

Permalink
Fix standalone build (intel#415)
Browse files Browse the repository at this point in the history
Fixes intel#406
Fixes intel#374

(cherry picked from commit 529a918)
  • Loading branch information
frantisekz authored and wenju-he committed Oct 7, 2023
1 parent bc1d13e commit 02213c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cl_headers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
set(CL_HEADERS_LIB cl_headers)
set(CLANG_COMMAND $<TARGET_FILE:clang> )
if(USE_PREBUILT_LLVM)
find_program(CLANG_COMMAND clang PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH)
else()
set(CLANG_COMMAND $<TARGET_FILE:clang>)
endif()
if(LLVM_USE_HOST_TOOLS AND NOT OPENCL_CLANG_BUILD_EXTERNAL)
build_native_tool(clang CLANG_COMMAND)
endif()
Expand Down

0 comments on commit 02213c6

Please sign in to comment.