[CMake] Default to static linking for subprojects.
authorMichael Kruse <llvm-project@meinersbur.de>
Mon, 24 Feb 2020 17:51:00 +0000 (11:51 -0600)
committerMichael Kruse <llvm-project@meinersbur.de>
Mon, 24 Feb 2020 17:54:08 +0000 (11:54 -0600)
commit6369b9bf31188bdd472299252deb6db3f650864b
tree11eeb2cd6f208cbe75adc414f3aaafb98f25da9d
parent3d65dd1e668ee681814f83e1423e4bee5d17ffb5
[CMake] Default to static linking for subprojects.

Pass plugins introduced in D61446 do not support dynamic linking on
Windows, hence the option LLVM_${name_upper}_LINK_INTO_TOOLS can only
work being set to "ON". Currently, it defaults to "OFF" such that such
plugins are inoperable by default on Windows. Change the default for
subprojects to follow LLVM_ENABLE_PROJECTS.

Reviewed By: serge-sans-paille, MaskRay

Differential Revision: https://reviews.llvm.org/D72372
llvm/cmake/modules/AddLLVM.cmake
polly/lib/CMakeLists.txt