]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cmake : use set() for LLAMA_WIN_VER (#5298)
authorWelby Seely <redacted>
Sun, 4 Feb 2024 04:18:51 +0000 (23:18 -0500)
committerGitHub <redacted>
Sun, 4 Feb 2024 04:18:51 +0000 (23:18 -0500)
option() is specifically for booleans.

Fixes #5158

CMakeLists.txt

index c156c4824fc74b2233bd90d575d92258a129632d..8c04e4c19c5d7870219e9726bd0298a87cb66a95 100644 (file)
@@ -79,7 +79,7 @@ if (NOT MSVC)
 endif()
 
 if (WIN32)
-    option(LLAMA_WIN_VER                     "llama: Windows Version"                           0x602)
+    set(LLAMA_WIN_VER "0x602" CACHE STRING "llama: Windows Version")
 endif()
 
 # 3rd party libs