aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5a9685..7367719 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -492,6 +492,10 @@ if (GGML_SOURCES_CUDA)
message(STATUS "GGML CUDA sources found, configuring CUDA architecture")
set_property(TARGET ggml PROPERTY CUDA_ARCHITECTURES OFF)
set_property(TARGET ggml PROPERTY CUDA_SELECT_NVCC_ARCH_FLAGS "Auto")
+
+ set_property(TARGET ggml_static PROPERTY CUDA_ARCHITECTURES OFF)
+ set_property(TARGET ggml_static PROPERTY CUDA_SELECT_NVCC_ARCH_FLAGS "Auto")
+
set_property(TARGET llama PROPERTY CUDA_ARCHITECTURES OFF)
endif()