Could you resolve it? I'm having the same problem as @akshaybabloo, I've tried everything without success, this is making me crazy.
EDIT: SOLVED IT!! @akshaybabloo and @Talkless, check your CMakeLists.txt file, the one in the base of your project; there you must have a line saying
set(CMAKE_BUILD_TYPE Release)
Just surround it with if's, just like this
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
Now everything works as expected.