Fixed CMake scripts