Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Properly disable debugging code in Release builds
  • Loading branch information
sfan5 committed Mar 24, 2018
1 parent 976c690 commit b16f93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -13,7 +13,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE)
endif()

set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -DNDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g2 -Wall")

if(WIN32)
Expand Down

0 comments on commit b16f93f

Please sign in to comment.