Yep, that sounds fine - just wanted to put the warning out there since it's a common issue.
Ryan On Thu, Jan 13, 2011 at 9:30 AM, kent williams <nkwmailingli...@gmail.com>wrote: > The particular reason I use file(GLOB is that I want to find instances > of, for example tclsh -- tclsh tclsh8.5, tclsh8.4 -- whatever it > happens to be named -- so I can remove it from the directory into > which it's built. > > The main reason as near as I can figure NOT to use file(GLOB to build > lists of source files is that you have to re-run cmake to pick up any > files added or deleted, right? > > In my particular case, I'm running CMake using -P as a script > processor, so there's no problem with the cache getting out of sync. > > On Thu, Jan 13, 2011 at 7:59 AM, Ryan Pavlik <rpav...@iastate.edu> wrote: > > And, just as a caution: Don't use file(GLOB to create a list of source > files > > to compile. Search the wiki or the archives for info. > > Ryan > > > > On Wed, Jan 12, 2011 at 12:05 PM, Andreas Pakulat <ap...@gmx.de> wrote: > >> > >> On 12.01.11 11:56:53, kent williams wrote: > >> > I'm generating a list of files with file(GLOB), but then I want to > >> > remove some filenames from the resulting list. > >> > > >> > So essentially I'd like a CMake function like this > >> > > >> > function(RemoveItemsFromList ListA ListToRemove) > >> > endfunction(RemoveItemsFromList) > >> > > >> > and I don't know what to put in the middle ;-) > >> > >> There's no need for a function, the list() function can already do that: > >> > >> list( REMOVE_ITEM yourlist ${listToRemove} ) > >> > >> Andreas > >> > >> -- > >> Give thought to your reputation. Consider changing name and moving to > >> a new town. > >> _______________________________________________ > >> Powered by www.kitware.com > >> > >> Visit other Kitware open-source projects at > >> http://www.kitware.com/opensource/opensource.html > >> > >> Please keep messages on-topic and check the CMake FAQ at: > >> http://www.cmake.org/Wiki/CMake_FAQ > >> > >> Follow this link to subscribe/unsubscribe: > >> http://www.cmake.org/mailman/listinfo/cmake > > > > > > > > -- > > Ryan Pavlik > > HCI Graduate Student > > Virtual Reality Applications Center > > Iowa State University > > > > rpav...@iastate.edu > > http://academic.cleardefinition.com > > Internal VRAC/HCI Site: http://tinyurl.com/rpavlik > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the CMake FAQ at: > > http://www.cmake.org/Wiki/CMake_FAQ > > > > Follow this link to subscribe/unsubscribe: > > http://www.cmake.org/mailman/listinfo/cmake > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake