From 99a1f7aa352f25e07ba409192070db79e57f41a3 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Tue, 16 Jul 2024 23:30:26 -0700 Subject: [PATCH] cmake: let CMake choose when adding /DNDEBUG on windows ref: https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/Platform/Windows-MSVC.cmake?ref_type=heads#L489-L491 --- cmake/cpp.cmake | 1 - cmake/flatzinc.cmake | 1 - cmake/glop.cmake | 1 - 3 files changed, 3 deletions(-) diff --git a/cmake/cpp.cmake b/cmake/cpp.cmake index 38ad8710d4..dabe725679 100644 --- a/cmake/cpp.cmake +++ b/cmake/cpp.cmake @@ -82,7 +82,6 @@ if(MSVC) "/D_CRT_SECURE_NO_DEPRECATE" "/MP" # Build with multiple processes "/Zc:preprocessor" # Enable preprocessor conformance mode - "/DNDEBUG" "/fp:precise" ) # MSVC warning suppressions diff --git a/cmake/flatzinc.cmake b/cmake/flatzinc.cmake index 4914083724..55304f8935 100644 --- a/cmake/flatzinc.cmake +++ b/cmake/flatzinc.cmake @@ -27,7 +27,6 @@ if(MSVC) "/D_CRT_SECURE_NO_WARNINGS" "/D_CRT_SECURE_NO_DEPRECATE" "/MP" # Build with multiple processes - "/DNDEBUG" ) # MSVC warning suppressions list(APPEND FLATZINC_COMPILE_OPTIONS diff --git a/cmake/glop.cmake b/cmake/glop.cmake index 00d3a8da43..fc38b3d4eb 100644 --- a/cmake/glop.cmake +++ b/cmake/glop.cmake @@ -180,7 +180,6 @@ if(MSVC) "/D_CRT_SECURE_NO_DEPRECATE" "/MP" # Build with multiple processes "/Zc:preprocessor" # Enable preprocessor conformance mode - "/DNDEBUG" ) # MSVC warning suppressions list(APPEND GLOP_COMPILE_OPTIONS