From c6f97e7c2711cd8fe5c4f34ac2b315046c3285de Mon Sep 17 00:00:00 2001 From: Jacco Bikker Date: Sat, 16 Nov 2024 13:44:12 +0100 Subject: [PATCH] Testing changes to CMakeLists.txt --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54073d3..3eb7746 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,8 +83,6 @@ if (NOT MSVC) target_compile_options(tiny_bvh_renderer PRIVATE ${common_cxx_flags}) target_link_options(tiny_bvh_renderer PRIVATE ${common_link_flags}) - target_include_directories(tiny_bvh_speedtest PRIVATE ${${CMAKE_CURRENT_LIST_DIR}/external/OpenCL/inc/}) - # No openmp support in default compiler set(tiny_bvh_speedtest_cxx_flags ${common_cxx_flags}) set(tiny_bvh_speedtest_link_flags ${common_link_flags}) @@ -121,6 +119,7 @@ if (NOT MSVC) endif() target_compile_options(tiny_bvh_speedtest PRIVATE ${tiny_bvh_speedtest_cxx_flags}) target_link_options(tiny_bvh_speedtest PRIVATE ${tiny_bvh_speedtest_link_flags}) + target_include_directories(tiny_bvh_speedtest PRIVATE ${${CMAKE_CURRENT_LIST_DIR}/external/OpenCL/inc}) if (TARGET tiny_bvh_fenster) # Not all platforms support all targets. E. g.: