[CMake][Win32.DLL] Let llvm_add_library(SHARED) link dependent libraries as PRIVATE.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 14 Jul 2014 12:26:15 +0000 (12:26 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 14 Jul 2014 12:26:15 +0000 (12:26 +0000)
commitf51fbcbb3683e1810d19fee49e2897501d4d67f4
treeb010f8250a30426e58d01e06fdcf429497d48649
parent26012cec89248aa6b30c9b38d0071deee336536c
[CMake][Win32.DLL] Let llvm_add_library(SHARED) link dependent libraries as PRIVATE.

For example, c-index-test.exe requires just libclang.dll (its import library).
When libraries in libclang were not PRIVATE but PUBLIC, c-index-test required libraries transitive by libclang.

Note, on mingw with BUILD_SHARED_LIBS, library dependencies would become more strict.
In principle, required libraries should be "required in its source file".

This will help to detect missing dependencies.

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