View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0006314 | CMake | CMake | public | 2008-02-11 04:24 | 2008-04-09 15:15 | ||||
Reporter | Ignacio Castaño | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | feature | Reproducibility | always | ||||
Status | closed | Resolution | unable to reproduce | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0006314: Add EXCLUDE_FROM_BUILD source file property | ||||||||
Description | As suggested in this email: >> Is there a way to get cmake to generate a VC6 project file where some of the >> files have the 'exclude file from build' attribute set? > > No, but files with extensions like ".txt" that do not mean anything to > CMake or Visual Studio can be included in the project file with no ill > effects. We can add a source file property to cause this behavior: > > SET_SOURCE_FILES_PROPERTIES(foo.xyz PROPERTIES EXCLUDE_FROM_BUILD 1) http://www.cmake.org/pipermail/cmake/2004-August/005374.html [^] I think this property would be very useful. For example, some systems have installed custom visual studio rules that cause .fx or .cgfx files to be automatically compiled, but you may want to only include these files on the project to edit them easily. I can imagine similar issues arising in different circumstances. For example, you might have files with custom extensions selected as C/C++ to get syntax highlighting, but you may not want to build them. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0010497) Alex Neundorf (developer) 2008-02-14 15:23 |
You can do this by setting the HEADER_FILE_ONLY source file property true. I tested it here for a foo.c file with cmake 2.4.6 and current cvs, but only with makefiles. If that doesn't work with xcode or msvc, please reopen the bug report. Alex |
(0010531) Ignacio Castaño (reporter) 2008-02-17 04:31 |
Apparently that property doesn't have any effect in the MSVS 2005 target. I've tested it in cmake version 2.4-patch 8. |
(0010618) Alex Neundorf (developer) 2008-02-21 12:10 |
I don't have any Windows installation, so I can't really work on that. Alex |
(0011218) Bill Hoffman (manager) 2008-04-09 15:15 |
I tested and this works with 2.4.8 and 2.6.0 RC 7: set_source_files_properties(junk.c PROPERTIES HEADER_FILE_ONLY TRUE) |
(0011220) Bill Hoffman (manager) 2008-04-09 15:15 |
I tested with MSVC 2008, but 2005 should work as well. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2008-02-11 04:24 | Ignacio Castaño | New Issue | |
2008-02-14 15:23 | Alex Neundorf | Note Added: 0010497 | |
2008-02-14 15:23 | Alex Neundorf | Assigned To | => Alex Neundorf |
2008-02-14 15:23 | Alex Neundorf | Status | new => closed |
2008-02-14 15:23 | Alex Neundorf | Resolution | open => no change required |
2008-02-14 15:23 | Alex Neundorf | Category | CCMake => CMake |
2008-02-17 04:31 | Ignacio Castaño | Status | closed => feedback |
2008-02-17 04:31 | Ignacio Castaño | Resolution | no change required => reopened |
2008-02-17 04:31 | Ignacio Castaño | Note Added: 0010531 | |
2008-02-21 12:10 | Alex Neundorf | Assigned To | Alex Neundorf => |
2008-02-21 12:10 | Alex Neundorf | Note Added: 0010618 | |
2008-04-09 15:15 | Bill Hoffman | Status | feedback => closed |
2008-04-09 15:15 | Bill Hoffman | Note Added: 0011218 | |
2008-04-09 15:15 | Bill Hoffman | Resolution | reopened => unable to reproduce |
2008-04-09 15:15 | Bill Hoffman | Note Added: 0011220 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |