Skip to content

Commit 6b5e92e

Browse files
committed
Add optimization flag
1 parent f54320d commit 6b5e92e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ else(WIN32)
1616
endif()
1717
set(CMAKE_CXX_STANDARD 20)
1818
if(DEBUG)
19-
add_compile_options(-g)
19+
add_compile_options(-Wall -Wextra -g -O2)
2020
project(debug__MapMaker)
2121
else()
22+
add_compile_options(-O2)
2223
project(MapMaker)
2324
endif()
2425
set(STB_PATH "${PROJECT_SOURCE_DIR}/stb")

0 commit comments

Comments
 (0)