aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2025-01-27 10:53:33 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2025-01-28 14:23:42 +0100
commitbf6ee7cb3448faf981edc689791b0a9cbf728a1b (patch)
tree0c0e71881a19aeeec263583a2a8699b91b6e50bc
parentaa37a5a0c4e5a74aebc029c6513f762da2208658 (diff)
downloadzig-bf6ee7cb3448faf981edc689791b0a9cbf728a1b.tar.gz
zig-bf6ee7cb3448faf981edc689791b0a9cbf728a1b.zip
cmake: use cache entry for extra build args to get the type correct
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0ca49e3be5..2f5ce8529e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -932,7 +932,7 @@ set(ZIG_BUILD_ARGS
-Dno-langref
)
-option(ZIG_EXTRA_BUILD_ARGS "Extra zig build args")
+set(ZIG_EXTRA_BUILD_ARGS "" CACHE STRING "Extra zig build args")
if(ZIG_EXTRA_BUILD_ARGS)
list(APPEND ZIG_BUILD_ARGS ${ZIG_EXTRA_BUILD_ARGS})
endif()