From f856f7921361989473e209f208b89687562f5a78 Mon Sep 17 00:00:00 2001 From: Seth R Johnson Date: Mon, 5 Feb 2024 12:28:38 -0500 Subject: [PATCH] Don't recurse through libraries when not using RDC --- cmake/CeleritasLibrary.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CeleritasLibrary.cmake b/cmake/CeleritasLibrary.cmake index 2b1d38623f..532190e439 100644 --- a/cmake/CeleritasLibrary.cmake +++ b/cmake/CeleritasLibrary.cmake @@ -635,7 +635,7 @@ endfunction() # the 3 libraries (static, middle, final) libraries needed # for a separatable CUDA library function(celeritas_target_link_libraries target) - if(NOT CMAKE_CUDA_COMPILER) + if(NOT CMAKE_CUDA_COMPILER OR NOT CELERITAS_USE_VecGeom) target_link_libraries(${ARGV}) return() endif()