[cmake-developers] Startup Project Configuration [mantis 15578]

Taylor Braun-Jones taylor at braun-jones.org
Mon Mar 21 16:17:04 EDT 2016


On Fri, Mar 18, 2016 at 1:31 PM, Brad King <brad.king at kitware.com> wrote:
>
> Please check that the revised version works for you.

I did some more thorough testing and ran into an issue when
USE_FOLDERS is enabled. The problem is actually the same one affecting
the ALL_BUILD target that is preventing it from being grouped with the
PREDEFINED_TARGETS_FOLDER as it should be. It's not actually the first
target in a .sln file that is treated as the default startup project,
but rather the first _fully defined target_. See this SO comment
thread:

http://stackoverflow.com/questions/694730/why-is-set-as-startup-option-stored-in-the-suo-file-and-not-the-sln-file#comment40597475_1808352

The solution is to just list all folders in the .sln file first (patch
0002). With the fix in patch 0002, ALL_BUILD can then be put in
PREDEFINED_TARGETS_FOLDER (patch 0003).

Taylor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fixup-VS-Add-option-to-choose-the-.sln-startup-proje.patch
Type: text/x-patch
Size: 2953 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160321/879693c0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-VS-Fix-default-target-support-for-targets-nested-ins.patch
Type: text/x-patch
Size: 3145 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160321/879693c0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Put-ALL_BUILD-in-the-PREDEFINED_TARGETS_FOLDER.patch
Type: text/x-patch
Size: 1385 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160321/879693c0/attachment-0002.bin>


More information about the cmake-developers mailing list