Fixing cyclic CMake dependency