Skip to content

Commit

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

(cherry picked from commit 529a918)

Co-authored-by: František Zatloukal <[email protected]>
  • Loading branch information
wenju-he and frantisekz committed May 18, 2023
1 parent bda7746 commit 321e3b9
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 321e3b9

Please sign in to comment.