OSDN Git Service

[cmake] fix a typo in llvm_config macro
authorPavel Labath <labath@google.com>
Wed, 6 Jun 2018 10:07:08 +0000 (10:07 +0000)
committerPavel Labath <labath@google.com>
Wed, 6 Jun 2018 10:07:08 +0000 (10:07 +0000)
commitd2c6383f3cd7b6b15b6916668d1b1ec0963a9948
tree0ab6ecb17e2c51a8b79ec5fe525edc800610efb4
parentf37d193460938f7d0bfc03585926fea721b04d6c
[cmake] fix a typo in llvm_config macro

Summary:
The macro parses out the USE_SHARED option out of the argument list, but
then ignores it and accesses the variable with the same name instead. It
seems the intention here was to check the argument value.

Technically, this is NFC, because the only in-tree usage
(add_llvm_executable) of USE_SHARED sets both the variable and the
argument when calling llvm_config, but it makes the usage of this macro
for out-of-tree users more sensible.

Reviewers: mgorny, beanz

Reviewed By: mgorny

Subscribers: foutrelis, llvm-commits

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

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