From c70f10d4b5a48b643c718b1fd82a303ad7951778 Mon Sep 17 00:00:00 2001 From: mspronesti Date: Wed, 2 Mar 2022 12:20:17 +0100 Subject: [PATCH] fix: add missing OpenCL dep if OpenCL found --- baylib/CMakeLists.txt | 2 ++ test/cow_test.cpp | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/baylib/CMakeLists.txt b/baylib/CMakeLists.txt index e37c772..6a2aa62 100644 --- a/baylib/CMakeLists.txt +++ b/baylib/CMakeLists.txt @@ -63,7 +63,9 @@ set (src_cuda if(CMAKE_CUDA_COMPILER) list(APPEND src ${src_cuda}) endif() + if(BAYLIB_OPENCL) + list(APPEND BAYLIB_REQUIRED_LIBS OpenCL) list(APPEND src ${src_opencl}) endif() diff --git a/test/cow_test.cpp b/test/cow_test.cpp index 474d5a3..2f7d34c 100644 --- a/test/cow_test.cpp +++ b/test/cow_test.cpp @@ -5,7 +5,6 @@ #include #include #include -#include #include #include @@ -35,8 +34,7 @@ class cow_tests : public ::testing::Test { A, B, C, - D, - E + D };