How do I change the startup project of a Visual Studio solution via CMake?

后端 未结 6 1509
刺人心
刺人心 2020-12-05 09:13

I am using CMake to generate Visual Studio projects. Everything works fine except one thing.

The startup project in the solution is always ALL_BUILD. Ho

6条回答
  •  悲哀的现实
    2020-12-05 09:33

    You can't. The startup-project is stored in a binary file, which is NOT generated by CMake. Without that binary file, visual studio will default to the first project in the solution file and the ALL_BUILD project is always first...

    Update: this answer is "out-of-date" since it is now feasible with CMake 3.6. See the answer by ComicSansMS.

提交回复
热议问题