On 05/05/2015 04:57 PM, Robert Goulet wrote:
> This is a major issue because when building with msbuild.exe,
> specifying a target project will not respect the rules set in
> the solution file, which might have some projects disabled by
> the EXCLUDE_FROM_DEFAULT_BUILD cmake target property.
The VS solution files are an extra generator-specific piece that
do not really fit in CMake's general model of the build rules.
Everything related to them requires special interfaces like
EXCLUDE_FROM_DEFAULT_BUILD.
On 05/05/2015 05:02 PM, Robert Goulet wrote:
> else if ( realTarget == "build" )
> {
> makeCommand.push_back(std::string(projectName)+".sln");
> makeCommand.push_back("/t:Build");
> }
The existing "clean" special case corresponds to "make clean".
We can't add a special case for the "build" name because that
is not reserved as a special cmake-defined target name. We
could use a more obscure name though, such as "default_build"
or ".sln". The other VS generators would have to learn to honor
this name too.
One could also teach CMake to recognize "--target $proj.sln"
as a special case for building the entire solution.
If you want precise control over the msbuild invocation, why not
just invoke it directly?
-Brad
--
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