[CMake] Followup for r337366: Only export LLVM_LINK_LLVM_DYLIB if it's set to ON
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Fri, 27 Jul 2018 10:57:51 +0000 (10:57 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Fri, 27 Jul 2018 10:57:51 +0000 (10:57 +0000)
commit5fed24a39698466952504850e8fd7703e17ce679
tree5a61dfb50adc4092f4d53ad8352a52347b1d1d1b
parent78e4b4d3c442a8ee97f2488a7ec690146a42c6ac
[CMake] Followup for r337366: Only export LLVM_LINK_LLVM_DYLIB if it's set to ON

Summary:
As it was, always exporting LLVM_LINK_LLVM_DYLIB caused out-of-tree
clients to lose the ability to link against the dylib, even if in-tree tools did
not. By only exporting the setting if it is enabled, out-of-tree clients get the
correct default, but may still choose if they can.

Reviewers: mgorny, beanz, labath, bogner, chandlerc

Reviewed By: bogner, chandlerc

Subscribers: bollu, llvm-commits

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

llvm-svn: 338119
llvm/cmake/modules/CMakeLists.txt
llvm/cmake/modules/LLVMConfig.cmake.in