Fixes regression in CMake