cmake : fix incorrect variable reference

This commit is contained in:
Jared Van Bortel 2023-12-12 11:19:18 -05:00
parent a81a34add0
commit b5b2cdff1d

View file

@ -482,7 +482,7 @@ message("-- CUDA host compiler is " ${cuda_ccid} " " ${cuda_ccver})
get_flags(${cuda_ccid} ${cuda_ccver}) get_flags(${cuda_ccid} ${cuda_ccver})
list(JOIN gf_cxx_flags " " cuda_cxx_flags) # pass host compiler flags as a single argument list(JOIN gf_cxx_flags " " cuda_cxx_flags) # pass host compiler flags as a single argument
if (NOT cuda_host_flags STREQUAL "") if (NOT cuda_cxx_flags STREQUAL "")
set(cuda_flags ${cuda_flags} -Xcompiler ${cuda_cxx_flags}) set(cuda_flags ${cuda_flags} -Xcompiler ${cuda_cxx_flags})
endif() endif()