From e7d20cf352688bf717a01f4e6d9e6f497c2bea4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 20 Sep 2025 19:19:34 +0200 Subject: New upstream version 5.3.1Beta2 --- PlatformSettings.cmake | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'PlatformSettings.cmake') diff --git a/PlatformSettings.cmake b/PlatformSettings.cmake index 272af37..a1b36a9 100644 --- a/PlatformSettings.cmake +++ b/PlatformSettings.cmake @@ -24,6 +24,7 @@ if(UNIX) add_link_options("-pthread") endif() + add_compile_options("-Wall") # glib 2.0 deprecated GTypeDebugFlags and GTimeVal, gtk2 has not been updated add_compile_options("-Wno-deprecated-declarations") endif() @@ -51,11 +52,14 @@ if(WIN32) set( XTRKCAD_ARCH_SUBDIR "x86") endif () - set(CMAKE_C_FLAGS_DEBUG "/D_DEBUG /MDd /Zi /Ob0 /Od /RTC1" CACHE STRING "Flags used by the compiler during debug builds" FORCE) - set(CMAKE_C_FLAGS_MINSIZEREL "/MD /O1 /Ob1 /D NDEBUG" CACHE STRING "Flags used by the compiler during release minumum size builds" FORCE) - set(CMAKE_C_FLAGS_RELEASE "/MD /O2 /Ob2 /D NDEBUG" CACHE STRING "Flags used by the compiler during release builds" FORCE) - set(CMAKE_C_FLAGS_RELWITHDEBINFO "/MDd /Zi /O2 /Ob1 /D NDEBUG" CACHE STRING "Flags used by the compiler during release with debug info builds" FORCE) + add_compile_options( + "$<$:/W3>" + ) - add_definitions(-DWINDOWS) - add_definitions(-D_CRT_SECURE_NO_WARNINGS) + add_compile_definitions( + "$<$:_DEBUG>" + ) + + add_compile_definitions(WINDOWS) + add_compile_definitions(_CRT_SECURE_NO_WARNINGS) endif() -- cgit v1.2.3