From 3ce589b0d3f9f15ebdd32da371974a352482a7e8 Mon Sep 17 00:00:00 2001 From: Vladislav P Date: Wed, 23 Sep 2026 20:16:37 +0300 Subject: [PATCH] Fix imcremental builds with CUDA Signed-off-by: Vladislav P --- src/algorithms/acquisition/libs/CMakeLists.txt | 2 +- src/algorithms/tracking/adapters/CMakeLists.txt | 2 +- src/algorithms/tracking/gnuradio_blocks/CMakeLists.txt | 2 +- src/algorithms/tracking/libs/CMakeLists.txt | 2 +- src/core/receiver/CMakeLists.txt | 2 +- src/main/CMakeLists.txt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/algorithms/acquisition/libs/CMakeLists.txt b/src/algorithms/acquisition/libs/CMakeLists.txt index 88228a91f..45b09f80a 100644 --- a/src/algorithms/acquisition/libs/CMakeLists.txt +++ b/src/algorithms/acquisition/libs/CMakeLists.txt @@ -86,7 +86,7 @@ if(ENABLE_CUDA) CUDA::cufft ) set_target_properties(acquisition_libs PROPERTIES - CUDA_SEPARABLE_COMPILATION ON + CUDA_SEPARABLE_COMPILATION OFF POSITION_INDEPENDENT_CODE ON CUDA_RESOLVE_DEVICE_SYMBOLS ON ) diff --git a/src/algorithms/tracking/adapters/CMakeLists.txt b/src/algorithms/tracking/adapters/CMakeLists.txt index 6f6dc6840..2e59fac49 100644 --- a/src/algorithms/tracking/adapters/CMakeLists.txt +++ b/src/algorithms/tracking/adapters/CMakeLists.txt @@ -104,7 +104,7 @@ if(ENABLE_CUDA) ) endif() set_target_properties(tracking_adapters PROPERTIES - CUDA_SEPARABLE_COMPILATION ON + CUDA_SEPARABLE_COMPILATION OFF POSITION_INDEPENDENT_CODE ON ) endif() diff --git a/src/algorithms/tracking/gnuradio_blocks/CMakeLists.txt b/src/algorithms/tracking/gnuradio_blocks/CMakeLists.txt index 69bc157b7..e1d011c64 100644 --- a/src/algorithms/tracking/gnuradio_blocks/CMakeLists.txt +++ b/src/algorithms/tracking/gnuradio_blocks/CMakeLists.txt @@ -109,7 +109,7 @@ if(ENABLE_CUDA) ) endif() set_target_properties(tracking_gr_blocks PROPERTIES - CUDA_SEPARABLE_COMPILATION ON + CUDA_SEPARABLE_COMPILATION OFF POSITION_INDEPENDENT_CODE ON ) endif() diff --git a/src/algorithms/tracking/libs/CMakeLists.txt b/src/algorithms/tracking/libs/CMakeLists.txt index c4402d1cd..c61cb05bf 100644 --- a/src/algorithms/tracking/libs/CMakeLists.txt +++ b/src/algorithms/tracking/libs/CMakeLists.txt @@ -119,7 +119,7 @@ if(ENABLE_CUDA) ) endif() set_target_properties(tracking_libs PROPERTIES - CUDA_SEPARABLE_COMPILATION ON + CUDA_SEPARABLE_COMPILATION OFF POSITION_INDEPENDENT_CODE ON CUDA_RESOLVE_DEVICE_SYMBOLS ON ) diff --git a/src/core/receiver/CMakeLists.txt b/src/core/receiver/CMakeLists.txt index 7c7b35e6a..3b9541c53 100644 --- a/src/core/receiver/CMakeLists.txt +++ b/src/core/receiver/CMakeLists.txt @@ -173,7 +173,7 @@ if(ENABLE_CUDA) ) endif() set_target_properties(core_receiver PROPERTIES - CUDA_SEPARABLE_COMPILATION ON + CUDA_SEPARABLE_COMPILATION OFF POSITION_INDEPENDENT_CODE ON ) target_compile_definitions(core_receiver PRIVATE -DCUDA_GPU_ACCEL=1) diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt index 4a85d296e..022def69d 100644 --- a/src/main/CMakeLists.txt +++ b/src/main/CMakeLists.txt @@ -51,7 +51,7 @@ if(ENABLE_CUDA) ) endif() set_target_properties(gnss-sdr PROPERTIES - CUDA_SEPARABLE_COMPILATION ON + CUDA_SEPARABLE_COMPILATION OFF POSITION_INDEPENDENT_CODE ON ) target_compile_definitions(gnss-sdr PRIVATE -DCUDA_GPU_ACCEL=1)