I have a problem with building CMake embedded project sometime. VisualGDB does not reflect changes in “CMake project settings” or even do not pass arguments to the invocation of CMake. It does not pass even toolchain file.
Even when I change in CMake path to invalid it does somehow remember old path and invokes the right exe.
that does not help. every time I did rebuild it does not pass flags from toolchain. When I run CMake for the second time it works. I even tried to a fresh import of CMake project and it does not help either. I realized that it is not VisualGDB fault and added “CACHE STRING “” FORCE” arguments to SET calls in toolchain file and now it works fine.
I found one problem with importing CMake project. When you are filling in “Import CMake Project” field “Directory with CMakeLists.txt” the dialog allows only choose files CMakeLists.txt, not the whole folder. Then when you try to finish importing it fails when you choose some CMakeLists.txt. So you must fill path manually not via dialog.