Skip to content

Commit

Permalink
Disable Unknown-Pragma globally
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Oct 17, 2024
1 parent d0b7aba commit 642083d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions overrides-gcc.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Disable unknown-pragmas warning
foreach(lang C CXX ASM)
set(CMAKE_${lang}_FLAGS_DEBUG "")
set(CMAKE_${lang}_FLAGS_MINSIZEREL "-Os -DNDEBUG")
set(CMAKE_${lang}_FLAGS_RELEASE "")
set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO "-O2 -g -DNDEBUG")
set(CMAKE_${lang}_IMPLICIT_LINK_LIBRARIES "")
set(CMAKE_${lang}_IMPLICIT_LINK_DIRECTORIES "")
set(CMAKE_${lang}_FLAGS_DEBUG "-Wno-unknown-pragmas")
set(CMAKE_${lang}_FLAGS_MINSIZEREL "-Wno-unknown-pragmas -Os -DNDEBUG")
set(CMAKE_${lang}_FLAGS_RELEASE "-Wno-unknown-pragmas")
set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO "-Wno-unknown-pragmas -O2 -g -DNDEBUG")
set(CMAKE_${lang}_IMPLICIT_LINK_LIBRARIES "-Wno-unknown-pragmas")
set(CMAKE_${lang}_IMPLICIT_LINK_DIRECTORIES "-Wno-unknown-pragmas")
endforeach()

0 comments on commit 642083d

Please sign in to comment.