MantisBT - CMake
View Issue Details
0013587CMakeCMakepublic2012-10-13 12:252013-03-04 08:38
Petr Kmoch 
Brad King 
normalminorN/A
closedfixed 
CMake 2.8.9 
CMake 2.8.11 
0013587: Provide per-configuration variants of EXCLUDE_FROM_DEFAULT_BUILD (w/patch)
Visual Studio supports excluding targets from build on a per-configuration basis. I have created a patch to support this in CMake as well. It adds support for per-configuration target properties EXCLUDE_FROM_DEFAULT_BUILD_<CONFIG>.
The patch is based on commit 3eecc1 (nightly date 20121013). It includes tests, identifiable as -R VSExclude
No tags attached.
zip skip_target_config.zip (4,966) 2012-10-13 12:25
https://public.kitware.com/Bug/file/4520/skip_target_config.zip
Issue History
2012-10-13 12:25Petr KmochNew Issue
2012-10-13 12:25Petr KmochFile Added: skip_target_config.zip
2012-10-13 12:25Petr KmochNote Added: 0031226
2012-10-15 09:18Brad KingNote Added: 0031235
2012-10-15 09:18Brad KingAssigned To => Brad King
2012-10-15 09:18Brad KingStatusnew => resolved
2012-10-15 09:18Brad KingResolutionopen => fixed
2012-10-15 09:18Brad KingTarget Version => CMake 2.8.11
2013-03-04 08:38Robert MaynardNote Added: 0032472
2013-03-04 08:38Robert MaynardStatusresolved => closed

Notes
(0031226)
Petr Kmoch   
2012-10-13 12:25   
I will gladly make changes to the patch as necessary to make it acceptable.
(0031235)
Brad King   
2012-10-15 09:18   
Thanks!

Patches applied and merged to 'next' for testing:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=05630f5c [^]
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9d945864 [^]
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cb13d343 [^]

I tweaked the first patch to not add the test on VS 6 and the second patch to keep the C++ style within 79 columns and for compilation on a few older compilers.

Please follow up on the developers list if there is more work needed. Patches in the issue tracker are preferred only as proposed solutions to existing issues.
(0032472)
Robert Maynard   
2013-03-04 08:38   
Closing resolved issues that have not been updated in more than 4 months.