|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015731||CMake||CMake||public||2015-09-09 08:37||2016-06-10 14:31|
|Assigned To||Gilles Khouzam|
|Product Version||CMake 3.3.1|
|Target Version||Fixed in Version|
|Description||Reading the documentation for the property VS_DEPLOYMENT_CONTENT looks like it can be used to mark a file as "Excluded from build":|
"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:|
|Tags||No tags attached.|
Kitware Robot (administrator)
Resolving issue as `moved`.
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.
|2015-09-09 08:37||Marco Foco||New Issue|
|2015-09-09 09:47||Brad King||Assigned To||=> Gilles Khouzam|
|2015-09-09 09:47||Brad King||Status||new => assigned|
|2016-06-10 14:29||Kitware Robot||Note Added: 0042835|
|2016-06-10 14:29||Kitware Robot||Status||assigned => resolved|
|2016-06-10 14:29||Kitware Robot||Resolution||open => moved|
|2016-06-10 14:31||Kitware Robot||Status||resolved => closed|
|Copyright © 2000 - 2018 MantisBT Team|