cmake: fix bug #130
Merge pull request #131 from torbjoernk/feature/fix-cmake

cmake: fix bug #130