[CMake] FindMKL.cmake

David Cole david.cole at kitware.com
Thu Feb 10 07:52:08 EST 2011


On Thu, Feb 10, 2011 at 2:50 AM, Robert Bielik <robert.bielik at xponaut.se>wrote:
Michael Wild skrev 2011-02-09 16:48:

>
>  what about this:
>>
>> file(GLOB_RECURSE glob_results "/some/pattern*")
>> set(dirs)
>> foreach(f IN LISTS glob_results)
>>   get_filename_component(d "${f}" PATH)
>>   list(APPEND dirs "${d}")
>> endforeach()
>> list(REMOVE_DUPLICATES dirs)
>>
>
> Yeah, works fine but it seems to be a lot slower than using the nested
> file(GLOB...) macro approach, but I don't know why.
>


Probably because there are thousands of files, but only tens of directories.
Bang! 100x slower.



>
> /Rob
>
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110210/d7b51cef/attachment.htm>


More information about the CMake mailing list