From b5b2cdff1d6c0b6c4e62bc97fbf15198a6ed0eba Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Tue, 12 Dec 2023 11:19:18 -0500 Subject: [PATCH] cmake : fix incorrect variable reference --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d0117ea6e..cb155c29f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -482,7 +482,7 @@ message("-- CUDA host compiler is " ${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 -if (NOT cuda_host_flags STREQUAL "") +if (NOT cuda_cxx_flags STREQUAL "") set(cuda_flags ${cuda_flags} -Xcompiler ${cuda_cxx_flags}) endif()