[cfe-dev] [CMake] How to import Clang targets?

don hinton via cfe-dev cfe-dev at lists.llvm.org
Fri Oct 16 20:54:48 PDT 2015


Glad it helped...
On Oct 16, 2015 7:00 PM, "Adolphe Monticelli" <
susurration.of.despair at gmail.com> wrote:

> Hi Don,
>
> That works, thank you!
>
> On Fri, Oct 16, 2015 at 6:26 PM, don hinton <hintonda at gmail.com> wrote:
>
>> Hi Adolphe:
>>
>> Support for installing clang config files when building llvm+clang was
>> recently added, but isn't available in 3.7.   Please see:
>>
>>
>> https://mail.google.com/mail/u/0/?tab=wm#label/llvm-reviews/1503a5137d9128d3
>>
>> It's a trivial fix, so if you make that change and your version of cmake
>> is >= 3.0, you can rebuild and install will generate the clang config files
>> for you.
>>
>> hth...
>> don
>>
>> On Fri, Oct 16, 2015 at 10:10 AM, Adolphe Monticelli via cfe-dev <
>> cfe-dev at lists.llvm.org> wrote:
>>
>>> Hi all,
>>>
>>> Say I have downloaded LLVM/Clang 3.7.0, unpacked Clang to the
>>> tools/clang directory and built the whole project. Since LLVM installs a
>>> bunch of useful *.cmake files, including LLVMExports/LLVMConfig it is
>>> pretty easy to link against LLVM targets. However, I don't see any option
>>> to link against Clang libraries in this configuration, since Clang doesn't
>>> export anything in case if it was built as a part of LLVM.
>>>
>>> Is this intended and what should I do to import Clang targets properly?
>>> Am I missing something?
>>>
>>> _______________________________________________
>>> cfe-dev mailing list
>>> cfe-dev at lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151016/eee285fb/attachment.html>


More information about the cfe-dev mailing list