Description
By setting CMAKE_BUILD_TYPE explicitly to Release in CMakeLists.txt, the command-line value is overwritten. This makes it impossible to build a debug version of the library.
The correct approach would be: http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_change_the_default_build_mode_and_see_it_reflected_in_the_GUI.3F