fix cmake

This commit is contained in:
William Bell
2025-08-15 21:23:08 +01:00
parent f84e5429a5
commit 6a7ce72eb7

View File

@@ -52,6 +52,16 @@ find_package(BDWgc REQUIRED)
find_package(gmp REQUIRED) find_package(gmp REQUIRED)
target_compile_options(argon PRIVATE -O3 -Wall -s) 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) if(NOT APPLE)
target_link_options(argon PRIVATE -static) target_link_options(argon PRIVATE -static)
endif() endif()