[cmake] restrict object library dependency generation to PUBLIC libraries
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Mon, 4 May 2020 21:08:23 +0000 (14:08 -0700)
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Mon, 4 May 2020 21:12:42 +0000 (14:12 -0700)
commita29f603ef0db057a47002b30d080adaf76618ce7
tree7dc985708bc4d634f9d54ede11093403597ce7d4
parenta37caebc2d2d93573075633493e104e8664cf9e9
[cmake] restrict object library dependency generation to PUBLIC libraries

Previous patch broken flang, which has some yet-to-be resolved cyclic
dependencies.   This patch fixes the breakage by restricting the dependencies
which are generated to public libraries, which is probably more sensible anyway.

Differential Revision: https://reviews.llvm.org/D79366
llvm/cmake/modules/AddLLVM.cmake