Skip to content
Permalink
Browse files

Properly disable debugging code in Release builds

  • Loading branch information
sfan5 committed Mar 24, 2018
1 parent 976c690 commit b16f93f1837598f7eac9c702d6da538810bab961
Showing with 1 addition and 1 deletion.
  1. +1 −1 CMakeLists.txt
@@ -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)

0 comments on commit b16f93f

Please sign in to comment.