Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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?

What I have tried:

I've tried to switch off automatically running configure step. Then the ninja make file isn't updated automatically, but there is no build step at all, if I change something the source files.
KR
Vassili
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900