]> granicus.if.org Git - llvm/commit
[llvm] [cmake] Add additional headers only if they exist
authorMichal Gorny <mgorny@gentoo.org>
Thu, 4 Apr 2019 14:21:38 +0000 (14:21 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Thu, 4 Apr 2019 14:21:38 +0000 (14:21 +0000)
commite259a4d243d63b3159851f82b98663db69cf6adc
tree5d325138156767fa7406f3bf0f72edecf3dcc991
parent0796b9408f0e65fde625ce3c98ea06d9ea62155c
[llvm] [cmake] Add additional headers only if they exist

Modify the add_header_files_for_glob() function to only add files
that do exist, rather than all matches of the glob.  This fixes CMake
error when one of the include directories (which happen to include
/usr/include) contain broken symlinks.

Differential Revision: https://reviews.llvm.org/D59632

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357701 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/LLVMProcessSources.cmake