Fix cmake for cmake 3.0.0