Skip to content

Commit

Permalink
Merge pull request #49 from rozukke/feature/release-types
Browse files Browse the repository at this point in the history
Add ability to specify release types for CMake
  • Loading branch information
rozukke authored Aug 14, 2024
2 parents d93363e + da71ee0 commit 4a369b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ project(mcpp)

set(CMAKE_CXX_STANDARD 17)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")

set(MCPP_SRC_DIR src)
set(MCPP_INC_DIR include/mcpp)

Expand Down

0 comments on commit 4a369b8

Please sign in to comment.