From 6a7ce72eb719d99b68f3fabefeabf95d18f2cada Mon Sep 17 00:00:00 2001 From: William Bell <62452284+Ugric@users.noreply.github.com> Date: Fri, 15 Aug 2025 21:23:08 +0100 Subject: [PATCH] fix cmake --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 330d728..029f58c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,16 @@ find_package(BDWgc REQUIRED) find_package(gmp REQUIRED) target_compile_options(argon PRIVATE -O3 -Wall -s) +if(MSVC) + # Disable warning C4061 (enum in switch not handled) + target_compile_options(argon PRIVATE /wd4061) + + # Disable Spectre mitigation warning C5045 + target_compile_options(argon PRIVATE /wd5045) + + # Optionally, remove "treat warnings as errors" if enabled + # target_compile_options(argon PRIVATE /WX-) # uncomment if you previously used /WX +endif() if(NOT APPLE) target_link_options(argon PRIVATE -static) endif()