fixed cmake debug issue
Merge pull request #629 from jdangerx/cmake-debug-build

fixed cmake debug issue