I created soft symbolic links to files for my toolchain path. In CMake file I have command CMAKE_FORCE_C_COMPILER, which must take path to my c compiler arm-none-eabi-gcc.exe. But path to this compilers are always changing when new update arrive. So instead of path "C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q2-update/bin" I created symbolic link "C:/Program Files (x86)/GNU Tools ARM Embedded/gcc-compiler/bin", which point to previously file.But problem is now with symbolic link, it won't find "arm-none-eabi-gcc.exe" compiler.
So this code will work with no symbolic links and direct path to compiler.
But with symbolic link, it won't work, in build console it says:"arm-none-eabi-gcc.exe Not such a file or directory"
set(ARM_TOOLCHAIN_DIR "C:/Program Files (x86)/GNU Tools ARM Embedded/gcc-compiler/bin")
set(ARM_TOOLCHAIN_SUFFIX ".exe")
MAKE_FORCE_C_COMPILER("${ARM_TOOLCAHIN_DIR}/arm-none-eabi-gcc${ARM_TOOLCAHIN_SUFFIX}" GNU)