1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-13 19:50:34 +00:00

Build OpenCL block only if enabled with -DENABLE_OPENCL=ON

This commit is contained in:
Carles Fernandez 2019-08-02 14:59:05 +02:00
parent c79b8ea4f3
commit 4ec498514c
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
5 changed files with 6 additions and 6 deletions

View File

@ -76,7 +76,7 @@ if(ENABLE_FPGA)
)
endif()
if(OPENCL_FOUND)
if(ENABLE_OPENCL)
set(ACQ_ADAPTER_SOURCES
${ACQ_ADAPTER_SOURCES}
gps_l1_ca_pcps_opencl_acquisition.cc

View File

@ -44,7 +44,7 @@ if(ENABLE_FPGA)
set(ACQ_GR_BLOCKS_HEADERS ${ACQ_GR_BLOCKS_HEADERS} pcps_acquisition_fpga.h)
endif()
if(OPENCL_FOUND)
if(ENABLE_OPENCL)
set(ACQ_GR_BLOCKS_SOURCES ${ACQ_GR_BLOCKS_SOURCES} pcps_opencl_acquisition_cc.cc)
set(ACQ_GR_BLOCKS_HEADERS ${ACQ_GR_BLOCKS_HEADERS} pcps_opencl_acquisition_cc.h)
endif()
@ -97,7 +97,7 @@ if(CMAKE_BUILD_TYPE MATCHES Rel)
)
endif()
if(OPENCL_FOUND)
if(ENABLE_OPENCL)
target_link_libraries(acquisition_gr_blocks PUBLIC OpenCL::OpenCL)
target_include_directories(acquisition_gr_blocks
PUBLIC

View File

@ -67,7 +67,7 @@ set(GNSS_SPLIBS_HEADERS
geofunctions.h
)
if(OPENCL_FOUND)
if(ENABLE_OPENCL)
set(GNSS_SPLIBS_SOURCES ${GNSS_SPLIBS_SOURCES}
opencl/fft_execute.cc # Needs OpenCL
opencl/fft_setup.cc # Needs OpenCL

View File

@ -109,7 +109,7 @@ if(ENABLE_FLEXIBAND)
target_compile_definitions(core_receiver PRIVATE -DFLEXIBAND_DRIVER=1)
endif()
if(OPENCL_FOUND)
if(ENABLE_OPENCL)
message(STATUS "Adding processing blocks implemented using OpenCL")
target_link_libraries(core_receiver PUBLIC algorithms_libs OpenCL::OpenCL)
target_compile_definitions(core_receiver PRIVATE -DOPENCL_BLOCKS=1)

View File

@ -149,7 +149,7 @@ if(OPENSSL_FOUND)
add_definitions(-DUSE_OPENSSL_FALLBACK=1)
endif()
if(OPENCL_FOUND)
if(ENABLE_OPENCL)
add_definitions(-DOPENCL_BLOCKS_TEST=1)
endif()