Vassili Kravtchenko-Berejnoi Ответов: 0

Cmake повторно генерирует файлы ninja make каждый раз после запуска visual studio -> все исходные файлы перекомпилируются


I'm currently working in a c++/MinGW64 project where I'd like to use VS2019. The project uses CMake in combination with Ninja, so I simply open it in a "Folder View". I have brought VS2019 to generate the ninja makefiles and build the entire solution, but VS does it every time from the beginning after I restart VS. That is, when I start a new VS session and and try starting my application, CMake re-generates ninja files and then the whole code base is recompiled from scratch, although no changes have actually been made. In contras, when within one VS session, and I do not regenerate the ninja files manually, the build process involves only changed files, as expected. Is there any way to convince CMake to abstain from regenerating ninja project files in case where no changes where made?

Что я уже пробовал:

Я попытался отключить автоматический запуск шага настройки. Тогда файл ninja make не обновляется автоматически, но нет никакого шага сборки вообще, если я что-то изменяю в исходных файлах.
КР.
Василий

0 Ответов