I’ve got the problem. In my CMakeLists.txt file was present
add_compile_options(-Wall -Werror -std=c++17 -g)
So
-DCMAKE_BUILD_TYPE=Release
did not have any effect.
I just removed -g
parameter and Debug symbols simply disappear from output binary
CLICK HERE to find out more related problems solutions.