if you don’t add \mingw64\bin to PATH, the configuration returns an error: “compiler is not able to compile a simple test program.”
You can add the CMAKE environment variable: set(ENV{PATH} “${TOOLCHAIN_DIR};$ENV{PATH}”) then the configuration completes successfully. But compilation returns an error. if you add \mingw64\bin to PATH config and build will succeed.
How to properly configure the toolchainfile so that CMAKE fully controls the build, without changing OS variables? Is it possible to pass ENV{PATH} to build time?
OS: WINDOWS
CMAKE: 3.30
VSCode+CmakePresets