Notes |
|
(0038785)
|
Brad King
|
2015-05-20 14:06
|
|
If anyone works on this I think it should be a DIRECTORY property because we generate a .sln for each CMakeLists.txt file that has a project(). The property value for the directory corresponding to this CMakeLists.txt would determine that .sln's first project. This could be implemented with a special case in the .sln writing code rather than trying to adjust the overall project sorting. |
|
|
(0038786)
|
Davy Durham
|
2015-05-20 15:25
|
|
Don't directory properties "leak" out into subsequent calls to add_subdirectory()? At least, I think I've experienced that. |
|
|
(0038787)
|
Brad King
|
2015-05-21 08:38
|
|
Only a few specific properties like COMPILE_DEFINITIONS propagate into subdirectories automatically. |
|
|
(0038791)
|
Davy Durham
|
2015-05-21 11:08
|
|
If you think no work will be soon started on a feature like this, I would be willing to attempt it (following your direction above) and attach a patch file. Advisable? |
|
|
(0038792)
|
Brad King
|
2015-05-21 11:23
|
|
|
|
(0040705)
|
Davy Durham
|
2016-03-16 15:47
|
|
FWIW I submitted a patch to cmake-developers (subject: "Re: [cmake-developers] Startup Project Configuration [mantis 15578]" on 6/3/2015) which worked for me.
The response was that it needed a unit test to verify the results, but I was/am at a complete loss on how to do that.
I'd still like to see the feature in the cmake mainline. But for now I'm using CreateLaunchers from https://github.com/rpavlik/cmake-modules [^] . It needed a little TLC to work with newer cmake. |
|
|
(0040706)
|
Brad King
|
2016-03-16 16:04
|
|
Re 0015578:0040705: Yes, that thread was waiting for another response from you. Also you never posted the patch with the latest round of corrections. Please revive the thread over there if you want to see integration move forward. Please also rebase the patch on 'master' in case there are any new conflicts. |
|
|
(0040729)
|
Taylor Braun-Jones
|
2016-03-18 12:41
|
|
I've revived that thread with an updated patch. |
|
|
(0040738)
|
Brad King
|
2016-03-22 07:59
|
|
|
|
(0040739)
|
Taylor Braun-Jones
|
2016-03-22 09:34
|
|
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). |
|
|
(0040740)
|
Brad King
|
2016-03-22 10:12
|
|
|
|
(0041219)
|
Kitware Robot
|
2016-06-10 14:21
|
|
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
|