if (cmake build type == DebugRelease)
do this
do that
elseif (cmake build type == Debug)
do this
elseif (cmake build type == Release)
do that
endif()
This is repetitive and cumbersome, and also invites mistakes. This patch splits the build type into two variables that each say whether debug build is ON/OFF and release build is ON/OFF. I find the resulting code much easier to read; it also reduces duplication.
We have a lot of code of the form
This is repetitive and cumbersome, and also invites mistakes. This patch splits the build type into two variables that each say whether debug build is ON/OFF and release build is ON/OFF. I find the resulting code much easier to read; it also reduces duplication.