Hi Taylor,

I am afraid this behaviour is by design, so that ALL_BUILD can be the first
target in the generated solution and thus the Startup project by default.

However (speaking to the wider list audience), I would really appreciate an
option to override this "by design" behaviour. For projects which actually
use the generated solutions in the IDE for development and debugging
(instead of just building it), ALL_BUILD is useless as a startup project
anyway, and it brings an inconsistency to the Solution Explorer (not to
mention the fact that it pushes to the fore a CMake feature which is not
really necessary in VS, irritating "entrenched" Visual Studio users).

Would a patch introducing such an override option be considered acceptable?

Petr

On Mon, Mar 14, 2016 at 8:58 PM, Taylor Braun-Jones <[email protected]>
wrote:

> For the Visual Studio generator, the ALL_BUILD is not added to the
> PREDEFINED_TARGETS_FOLDER ("CMakePredefinedTargets").
>
> Tested on Windows 10 with Visual Studio 2013 using the following
> minimal CMakeLists.txt:
>
> cmake_minimum_required(VERSION 3.5)
> project(foobar)
> set_property(GLOBAL PROPERTY USE_FOLDERS ON)
>
> Targets like ZERO_CHECK, INSTALL, and RUN_TESTS work for me; just not
> ALL_BUILD.
>
> Thanks,
> Taylor
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake-developers
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to