Skip to content

Commit

Permalink
Add release optimization levels
Browse files Browse the repository at this point in the history
  • Loading branch information
benvenutti committed Aug 31, 2024
1 parent df39fa9 commit cb233b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ if(MSVC)
/we4289 /w14546 /w14547 /w14549 /w14555 /w14619 /w14905 /w14906 /w14928

# optimization levels:
$<$<CONFIG:RELEASE>:/O2>
$<$<CONFIG:DEBUG>:/Od>
)
else()
Expand All @@ -54,6 +55,7 @@ else()
-Wold-style-cast -Wcast-align -Wunused -Woverloaded-virtual -pedantic -Wextra

# optimization levels:
$<$<CONFIG:RELEASE>:-O3>
$<$<CONFIG:DEBUG>:-O0>

# coverage:
Expand Down

0 comments on commit cb233b9

Please sign in to comment.