Chanded the CMAKE_CXX_FLAGS to dafault to CMAKE_CXX_FLAGS_DEBUG.