Set the CMakeLists.txt file to 'Release' and not set to Debug to solve this problem
set( CMAKE_BUILD_TYPE Release )