Cmake is cross-platform free and open-source software for build automation it is not a build system but rather it generates another system's build files.
Welcome to the Hell of Hebugging