mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +00:00
[CMAKE] Silence warnings about unused variables on release builds
This commit is contained in:
parent
a5c5c19bcf
commit
c9a99bf63a
1 changed files with 2 additions and 0 deletions
|
@ -142,6 +142,8 @@ endif()
|
|||
# FIXME: Revisit this to see if we even need these levels
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
add_compile_options(-O2 -DNDEBUG=)
|
||||
add_compile_options(-Wno-unused-variable)
|
||||
add_compile_options(-Wno-unused-but-set-variable)
|
||||
else()
|
||||
if(OPTIMIZE STREQUAL "1")
|
||||
add_compile_options(-Os)
|
||||
|
|
Loading…
Reference in a new issue