From c6cc6fa490b252bb6a17e1abcf9cd179ffe0c1fc Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Tue, 16 Apr 2024 16:17:51 -0400 Subject: [PATCH] AND NOT USE_CUDA --- cmake/util_func.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/util_func.cmake b/cmake/util_func.cmake index 80847da7f..08abe116f 100644 --- a/cmake/util_func.cmake +++ b/cmake/util_func.cmake @@ -5,7 +5,7 @@ function(genai_set_target_compile_options target) if (HAS_SDL) target_compile_options(${target} PRIVATE "/sdl") endif () - if (HAS_QSPECTRE) + if (HAS_QSPECTRE AND NOT USE_CUDA) target_compile_options(${target} PRIVATE "/Qspectre") endif () if (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "arm" AND NOT USE_CUDA)