Fixed CMake 3.0.2 crash