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

Stephen Kelly steveire at gmail.com
Mon Jun 29 15:53:22 PDT 2015


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.

See 

 http://www.cmake.org/cmake/help/v3.2/policy/CMP0028.html

As of the resolution of 

 https://llvm.org/bugs/show_bug.cgi?id=19462

clang installs appropriate files when built with CMake, but I don't know 
about other llvm projects. 

I introduced a policy to disallow doing what clang was doing there, so you 
can use CMake 3.3-rc2 and CMP0062 to find any other possible instances of 
that problem.

Thanks,

Steve.





More information about the llvm-dev mailing list