hanchenye-llvm-project/compiler-rt/cmake/Modules
Alexey Samsonov a79696d9bf [CMake] Port add_sanitizer_rt_symbols to CMake 3.0
Patch by Brad King.

Our add_sanitizer_rt_symbols macro reads the LOCATION property of a
library to compute the location of the "lib<name>.a.syms" file to
generate next to the corresponding "lib<name>.a" library file.  CMake
3.0 introduces policy CMP0026 to disallow reading of the LOCATION target
property from non-imported targets in favor of the more powerful
$<TARGET_FILE> generator expression.

Teach add_sanitizer_rt_symbols to use the $<TARGET_FILE> generator
expression to compute the location of the symbols file to generate
with a custom command.  CMake 3.0 also adds support for generator
expressions to install(FILES) so use it when available to simplify
installation of the symbols file of the proper configuration.

llvm-svn: 202797
2014-03-04 08:32:43 +00:00
..
AddCompilerRT.cmake [asan] Install asan_device_setup to bin/ when targetting Android. 2014-02-27 08:41:40 +00:00
CompilerRTCompile.cmake Append -D__func__=__FUNCTION__ to SANITIZER_COMMON_CFLAGS 2014-02-26 21:54:39 +00:00
CompilerRTLink.cmake [CMake] Use host compiler to build unittests in standalone mode 2014-02-19 13:01:03 +00:00
CompilerRTUtils.cmake [CMake] Better support for COMPILER_RT_ENABLE_WERROR. Make sure compiler-rt libraries are build by 'make all' command 2014-02-24 11:32:49 +00:00
SanitizerUtils.cmake [CMake] Port add_sanitizer_rt_symbols to CMake 3.0 2014-03-04 08:32:43 +00:00