[CMake] file (GLOB) on linux with CMake 2.8
Ryan Pavlik
rpavlik at iastate.edu
Mon Mar 1 10:21:36 EST 2010
This kind of looks like you're trying to avoid hardcoding the names of
your source files. This might be a bug (in which case, please do file
it - better to file a bogus bug than to let a real one slip by), but in
any case, you probably don't want to do this. Instead, do an "ls" in
your directory to get a list of files, and do a "set(SOURCES)" command
and paste your file list in, or some similar technique.
See this link for some info on why:
http://www.cmake.org/cmake/help/cmake2.6docs.html#command:aux_source_directory
Ryan
On 03/01/2010 09:07 AM, Seelan Vamatheva wrote:
>
> Hi,
>
> During the process of porting our build system to CMake 2.8 (coming
> from 2.6), I found that the following code returns and empty list on
> linux:
>
> file(GLOB tmp_src "${param}/*.c??")
>
> On windows it works well. Also if I use CMake 2.6, it works well for
> both windows and linux. The CMake version is:
>
> cmake version 2.8.0
>
> I apologize if this issue is a bug and has been fixed, but I spent
> quite a bit of time chasing this and have come up with nothing. Any
> ideas? Thanks.
>
>
> _______________________________________________
> 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
rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100301/c9c7832a/attachment-0001.htm>
More information about the CMake
mailing list