[all-commits] [llvm/llvm-project] af7818: [cmake] Properly support target properties.
stephenneuendorffer via All-commits
all-commits at lists.llvm.org
Tue Aug 17 14:08:36 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: af7818093677dcb4c0840aef96bc029deb219e57
https://github.com/llvm/llvm-project/commit/af7818093677dcb4c0840aef96bc029deb219e57
Author: Stephen Neuendorffer <stephen.neuendorffer at xilinx.com>
Date: 2021-08-17 (Tue, 17 Aug 2021)
Changed paths:
M llvm/cmake/modules/AddLLVM.cmake
Log Message:
-----------
[cmake] Properly support target properties.
It's sometimes useful to use these directives when dealing with
external projects:
target_link_directories
target_link_libraries
target_include_directories
However, under certain circumstances,
llvm_add_library can generate multiple targets. We need to transfer
these properties to the new targets. Note that using a generator
expression is necessary because these properties will only be set
after llvm_add_library is called.
Differential Revision: https://reviews.llvm.org/D108098
More information about the All-commits
mailing list