The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15731 
====================================================================== 
Reported By:                Marco Foco
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15731
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-09-09 08:37 EDT
Last Modified:              2015-09-09 08:37 EDT
====================================================================== 
Summary:                    VS_DEPLOYMENT_CONTENT
Description: 
Reading the documentation for the property VS_DEPLOYMENT_CONTENT looks like it
can be used to mark a file as "Excluded from build":

http://www.cmake.org/cmake/help/v3.3/prop_sf/VS_DEPLOYMENT_CONTENT.html

"Mark a source file as content for deployment with a Windows Phone or Windows
Store application when built with a Visual Studio generator. The value must
evaluate to either 1 or 0 and may use generator expressions to make the choice
based on the build configuration. The .vcxproj file entry for the source file
will be marked either DeploymentContent or ExcludedFromBuild for values 1 and 0,
respectively."

Actually, this is not working in a plain C++ project.

I suspect that the note "with a Windows Phone or Windows Store application"
restricts the activity of this flag.

The workaround of marking a C++ file as HEADER_FILE_ONLY TRUE is inconvenient,
because it does not put a mark in the solution explorer (making very difficult
to spot the excluded files).


Steps to Reproduce: 
- add a file
- mark it as VS_DEPLOYMENT_CONTENT 0 (or FALSE, tested with both)

Load the vcxproj and notice that the file is not marked as "Excluded from build"
by right-clicking on the files and selecting "Properties" ("Excluded from build"
is actually empty, which defaults to false).


Additional Information: 
Related tickets (same problem, different solution proposed, all unimplemented:
http://public.kitware.com/Bug/view.php?id=6314
http://public.kitware.com/Bug/view.php?id=11902
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-09-09 08:37 Marco Foco     New Issue                                    
======================================================================

-- 

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