add /cmake-build to gitignore
fix unused variable warning when building with cmake