[CMake] FindMKL.cmake

Robert Bielik robert.bielik at xponaut.se
Thu Feb 10 02:50:43 EST 2011


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.

/Rob




More information about the CMake mailing list