[cmake-developers] How to set startup project in Visual Studio
Mike Gelfand
mikedld at mikedld.com
Sun Jun 19 17:42:16 EDT 2016
Hello,
On 06/18/2016 03:15 PM, Stephen Kelly wrote:
> a DIRECTORY property VS_STARTUP_PROJECT which sets the start up project in
> Visual Studio. I tried it in the 3.6 RC and it works fine if I set the
> property in the top-level directory, so thanks for that.
>
> However, the documentation does not say which directory to set it in, or why
> it is a DIRECTORY property.
>
> Why is this not a GLOBAL property?
My guess would be because CMake generates .sln file for each project()
call (e.g. if you have additional project() calls in subdirectories
apart from the top-level one), and then for each .sln file it would be
possible to specify different startup [VS] project. So it's not exactly
a directory, but a project property I would say, but there're no
"project properties" in CMake.
Regards,
Mike
More information about the cmake-developers
mailing list