fixed CMake scripts