Fix cmake for buildbot error

For #651