CMake: Fix #149.
Merge pull request #152 from pqu/cmake-fix

CMake: Fix #149.