[LLVMdev] [RFC] Improving the testing of exported LLVM CMake targets

Dan Liew dan at su-root.co.uk
Tue Jun 30 15:22:11 PDT 2015


Hi,

On 29 June 2015 at 15:53, Stephen Kelly <steveire at gmail.com> wrote:
> Dan Liew wrote:
>
>> This situation is currently broken. I've observed that
>>
>> - The LLVM 3.6.* binary tarballs have the LLVM CMake files completely
>> missing, how did this happen?
>> - The LLVM3.5 binary tarballs have the CMake files but they're
>> completely broken.
>
> You could also consider changing the names of the llvm imported targets at
> this point to llvm::foo (and similar for the clang imported targets). This
> will give better diagnostics with current cmake releases, and may gain extra
> benefit in the future.
>

I'd like to do that but I worry about downstream projects that rely
directly on target names instead of using the
llvm_map_components_to_libnames() function. Would using aliases like
``add_library(LLVMSuport ALIAS llvm::Support)`` be sufficient to not
break downstream projects?

Thanks,
Dan.



More information about the llvm-dev mailing list