llvm-capstone/llvm/cmake
NAKAMURA Takumi af2c1130ee Simplify linking to system libraries
The LLVMSupport library implementation consolidates all dependencies on
system libraries.  Move the logic gathering system libraries out of
'cmake/modules/LLVM-Config.cmake' and into 'lib/Support/CMakeLists.txt'.
Use the target_link_libraries() command there to tell CMake about the
link dependencies of the LLVMSupport implementation.  CMake will
automatically propagate this to all targets that link LLVMSupport
directly or indirectly.

We still need to build knowledge of system library dependencies into
'llvm-config'.  Store the list of libraries needed in a property on
LLVMSupport and teach 'tools/llvm-config/CMakeLists.txt' to retrieve it
from there.

Drop all calls to 'link_system_libs' and 'get_system_libs' from our
CMake code.  Replace their implementations with a warning that explains
the calls are no longer necessary.  Also drop from 'LLVMConfig.cmake'
the HAVE_* and related variables that were published there only to allow
'get_system_libs' to run outside our build process.

Contributed by Brad King.

llvm-svn: 201969
2014-02-23 06:27:04 +00:00
..
modules Simplify linking to system libraries 2014-02-23 06:27:04 +00:00
platforms Build PIE binaries when cross-compiling to Android. 2014-02-19 09:51:22 +00:00
config-ix.cmake Unconditionally include msan_interface.h when building with MSan. 2014-02-20 11:37:03 +00:00
Makefile Provide CMake package modules in install tree 2014-02-09 16:37:02 +00:00
nsis_logo.bmp
README

See docs/CMake.html for instructions on how to build LLVM with CMake.