[PATCH] D68520: [cmake] Fix clang builds with BUILD_SHARED=ON and CLANG_LINK_CLANG_DYLIB=ON
Tom Stellard via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 23 08:57:41 PST 2020
tstellar added inline comments.
================
Comment at: clang/tools/clang-shlib/CMakeLists.txt:28
+ foreach(lib ${interface})
+ string(REGEX MATCH "^clang" is_clang_lib ${lib})
+ if (NOT is_clang_lib)
----------------
mgorny wrote:
> Any reason not to use `if(${lib} MATCHES ...)`?
>
> https://cmake.org/cmake/help/v3.0/command/if.html
>
> Not sure if `${}` is needed, I get always confused by that.
Thanks for the tip, I updated the patch to use this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68520/new/
https://reviews.llvm.org/D68520
More information about the cfe-commits
mailing list