From 089189d735e666620aaeb256eb756d617115ece0 Mon Sep 17 00:00:00 2001 From: kamiccolo <kamicc@gmail.com> Date: Mon, 13 Jan 2025 20:45:29 +0200 Subject: [PATCH] fix: ditch not recommended -Wp prefixes preventing default gcc flag overwrite --- cmake/compilerFlags.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/compilerFlags.cmake b/cmake/compilerFlags.cmake index 154ab7563b..b4c8d3dc77 100644 --- a/cmake/compilerFlags.cmake +++ b/cmake/compilerFlags.cmake @@ -48,10 +48,10 @@ if ( MINGW OR UNIX OR MSYS ) # MINGW, Linux, APPLE, CYGWIN endif() endif() - add_compile_options(-Wp,-D_GLIBCXX_ASSERTIONS) + add_compile_options(-D_GLIBCXX_ASSERTIONS) if (CMAKE_BUILD_TYPE STREQUAL Release AND NOT (APPLE OR MINGW OR MSYS)) - add_compile_options(-Wp,-D_FORTIFY_SOURCE=2) # Requires to compile with -O2 + add_compile_options(-D_FORTIFY_SOURCE=2) # Requires to compile with -O2 endif() if(BUILD_WITH_COVERAGE)