Build files not written to current directory

I have:


and I invoke:

cd sdk/myBuild
cmake -G “Unix Makefiles” -DISA_AVX512=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/opt/flexran/y/sdk/cmake/toolchain-intel-linux.cmake …

(there are two dots at the end of that command line).

The Makefile is written to directory sdk, not the current directory which is sdk/myBuild.

How can that be?

Found the problem, there existed:


I deleted that file and the Makefile etc were correctly written to sdk/myBuild.