From 250b0d812f94e35e6eeee44df8bbe0bdf7421d3c Mon Sep 17 00:00:00 2001 From: Alex Bilger Date: Mon, 2 Feb 2026 10:17:41 +0100 Subject: [PATCH] [Config] Enable W4 option for MSVC --- Sofa/framework/Config/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Sofa/framework/Config/CMakeLists.txt b/Sofa/framework/Config/CMakeLists.txt index 97d3f52ebb0..aaf3b73e3ae 100644 --- a/Sofa/framework/Config/CMakeLists.txt +++ b/Sofa/framework/Config/CMakeLists.txt @@ -180,6 +180,7 @@ endif() ## Windows-specific if(WIN32) + list(APPEND SOFACONFIG_COMPILE_OPTIONS "/W4") list(APPEND SOFACONFIG_COMPILE_OPTIONS "-D_USE_MATH_DEFINES") list(APPEND SOFACONFIG_COMPILE_OPTIONS "-D_CRT_SECURE_NO_WARNINGS") list(APPEND SOFACONFIG_COMPILE_OPTIONS "-D_CRT_NONSTDC_NO_DEPRECATE")