Fixed bug in cmake build configuration.