mirror of https://github.com/microsoft/vcpkg.git
14 lines
477 B
Diff
14 lines
477 B
Diff
diff --git a/src/ggml-cuda/CMakeLists.txt b/src/ggml-cuda/CMakeLists.txt
|
|
index 67af1d8..113d0f6 100644
|
|
--- a/src/ggml-cuda/CMakeLists.txt
|
|
+++ b/src/ggml-cuda/CMakeLists.txt
|
|
@@ -177,6 +177,8 @@ if (CUDAToolkit_FOUND)
|
|
|
|
if (NOT MSVC)
|
|
list(APPEND CUDA_CXX_FLAGS -Wno-pedantic)
|
|
+ else()
|
|
+ list(APPEND CUDA_CXX_FLAGS /Zc:preprocessor)
|
|
endif()
|
|
|
|
list(JOIN CUDA_CXX_FLAGS " " CUDA_CXX_FLAGS_JOINED) # pass host compiler flags as a single argument
|