Does CMAKE_BUILD_TYPE=Release
implicitly imply -DNDEBUG
?
If not: isn't it reasonable to expect that this implication takes place?
I want to know if following CMake code is redundant in my CMakeLists.txt:
if (NOT CMAKE_BUILD_TYPE MATCHES Debug)
add_definitions(-DNDEBUG)
endif()