fixed CMake recursion issue