[PATCH] Expose LLVM build flags in LLVMConfig.cmake
steveire at gmail.com
Mon Jul 21 06:58:55 PDT 2014
On 07/21/2014 03:28 PM, Dan Liew wrote:
> I had another quick look at this. It seems there are
> - INTERFACE_COMPILE_OPTIONS
> - INTERFACE_COMPILE_DEFINITIONS
> properties on Targets. Am I right in understanding that if these were
> set on targets and then exported that these properties would persist?
I don't know what you mean by 'persist'.
> Am I also right in thinking that if someone imports that target then
> something like INTERFACE_COMPILE_OPTIONS are not automatically added
> and that a client of LLVM would have to do something like...
The new documentation in CMake 3.0 also apply to earlier versions,
insofar as the properties and commands exist:
"The contents of the INTERFACE_COMPILE_OPTIONS
target properties are /Usage Requirements/ – they specify content which
consumers must use to correctly compile and link with the target they
appear on. For any binary target, the contents of each INTERFACE_
property on each target specified in a target_link_libraries()
command is consumed"
So, further user action is not necessary beyond use of
target_link_libraries, if the targets have such properties populated.
Some information in
might also be useful to you.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits