mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-13 21:57:14 +00:00
Build OpenCL block only if enabled with -DENABLE_OPENCL=ON
This commit is contained in:
@@ -111,7 +111,7 @@ target_link_libraries(algorithms_libs
|
||||
Glog::glog
|
||||
)
|
||||
|
||||
if(OPENCL_FOUND)
|
||||
if(ENABLE_OPENCL)
|
||||
target_link_libraries(algorithms_libs PUBLIC OpenCL::OpenCL)
|
||||
target_include_directories(algorithms_libs PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/opencl
|
||||
|
||||
Reference in New Issue
Block a user