[CMake] file(GLOB …)
Rolf Eike Beer
eike at sf-mail.de
Fri Dec 23 10:45:27 EST 2011
Daniel Dekkers wrote:
> On 12/21/2011 05:25 PM, André Caron wrote:
> Get rid of the file(GLOB ...). Never, ever use it unless you know
> exactly what you're doing. Using it usually breaks something.
>
> On Dec 21, 2011, at 5:59 PM, David Cole wrote:
> I agree with the advice to get rid of file(GLOB
>
> What's the alternative. Enumerate all your filenames by hand?
Yes. This is no real problem as you need to do this only once. You can even
use the current CMake code to MESSAGE() out whatever CMake currently finds
using FILE(GLOB) and just copy that into your CMakeLists.txt
Eike
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111223/2fcb543c/attachment.pgp>
More information about the CMake
mailing list