MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0007487 | CMake | CMake | public | 2008-08-13 17:47 | 2016-06-10 14:30 |
| Reporter | Jason Spiro | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0007487: Please change FILE(GLOB) not to find hidden files or directories | ||||
| Description | When I do FILE(GLOB cpp_files *.cpp), CMake finds all *.cpp files. Sadly, this includes Emacs and XEmacs lockfiles[1]. These files are saved in the same directory as the normal source files, but they are dotfiles (Unix hidden files) whose names start with dot-pound, e.g.: .#main.cpp I do not want CMake to find those files, and I assume that most programmers think likewise.[2] Please change the GLOB command[3] so that it does not find files or directories whose name starts with a dot. Cheers, -Jason Footnotes: ^ [1]. http://tekman.livejournal.com/79598.html [^] ^ [2]. I can only think of one case where programmers *do* need to think about dotfiles: C and C++ programmers who use GNU Libtool, in the cases where they need to look inside the hidden directories that Libtool creates. You can read more about these hidden directories at http://makepp.sourceforge.net/1.40.1/makepp_scanning.html#libtool. [^] But I think it would be rare for anyone to use GLOB to try to find things inside Libtool hidden directories. They probably only want a few libraries from inside there, not dozens of files like I assume most GLOB users would want. So they are much more likely to specify the individual libraries they want by typing their full filenames. ^ [3]. Tip: The FILE(GLOB) command is defined by cmFileCommand::HandleGlobCommand. That method uses calls kwsys/Glob.cxx to do most of the work. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-08-13 17:47 | Jason Spiro | New Issue | |||
| 2008-08-13 18:07 | Jason Spiro | Note Added: 0013004 | |||
| 2008-08-19 16:45 | Bill Hoffman | Status | new => assigned | ||
| 2008-08-19 16:45 | Bill Hoffman | Assigned To | => Brad King | ||
| 2008-08-19 16:51 | Brad King | Note Added: 0013087 | |||
| 2012-08-13 10:36 | Brad King | Status | assigned => backlog | ||
| 2012-08-13 10:36 | Brad King | Note Added: 0030499 | |||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041444 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||