Skip to content

Commit

Permalink
Don't recurse through libraries when not using RDC
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Feb 5, 2024
1 parent 2bf98fc commit f856f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CeleritasLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f856f79

Please sign in to comment.