Skip to content

Commit

Permalink
Add OpenCL.lib for clang/g++ builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Nov 16, 2024
1 parent 46eff39 commit 947a7c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ if (NOT MSVC)
if (NOT APPLE AND NOT EMSCRIPTEN)
set(tiny_bvh_speedtest_cxx_flags ${tiny_bvh_speedtest_cxx_flags})
set(tiny_bvh_speedtest_link_flags ${tiny_bvh_speedtest_link_flags})
target_link_directories(tiny_bvh_speedtest PRIVATE ${CMAKE_CURRENT_LIST_DIR}/external/OpenCL/lib)
target_link_libraries(tiny_bvh_speedtest OpenCL)
target_link_libraries(tiny_bvh_speedtest ${CMAKE_CURRENT_LIST_DIR}/external/OpenCL/lib/OpenCL.lib)
elseif (EMSCRIPTEN)
# Embed Sponza into the wasm to load it (in theory there are other methods, but this is the simplest)
# See https://emscripten.org/docs/porting/files/packaging_files.html#modifying-file-locations-in-the-virtual-file-system
Expand Down

0 comments on commit 947a7c0

Please sign in to comment.