Hi there

Is there a way to tell the Visual Studio generators that a target should
not be included in “whole solution” builds?

With the following sequence A will be excluded from all solution
configurations, but B will be included.

add_custom_target(A)

add_custom_target(B COMMAND echo This is target B)

add_dependencies(A B)

I’m actually trying to define a set of targets that do not get built
automatically when one does a “solution build” in Visual Studio. I.e. I’d
like to find a way to have B excluded as well.

Is this possible at all?

Thanks in advance! And thanks to the CMake folks for the great tool!
--

Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to