Skip to content

Commit

Permalink
Add OpenCL paths to CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Nov 16, 2024
1 parent 8b11e63 commit 1106bf7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ if (NOT MSVC)
set(tiny_bvh_speedtest_cxx_flags ${common_cxx_flags})
set(tiny_bvh_speedtest_link_flags ${common_link_flags})

# OpenCL headers

if (NOT APPLE AND NOT EMSCRIPTEN)
set(tiny_bvh_speedtest_cxx_flags ${tiny_bvh_speedtest_cxx_flags} -fopenmp)
set(tiny_bvh_speedtest_link_flags ${tiny_bvh_speedtest_link_flags} -fopenmp)
set(tiny_bvh_speedtest_cxx_flags ${tiny_bvh_speedtest_cxx_flags} -fopenmp -Iexternal/OpenCL/inc)
set(tiny_bvh_speedtest_link_flags ${tiny_bvh_speedtest_link_flags} -fopenmp -Lexternal/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 1106bf7

Please sign in to comment.