[cfe-dev] LibTooling CMake Error

David Blaikie dblaikie at gmail.com
Fri Oct 19 08:26:46 PDT 2012


On Fri, Oct 19, 2012 at 3:52 AM, madil90 <madil90 at gmail.com> wrote:
> Hi,
>    I am trying to setup LibTooling for clang. I have gone through the
> procedure given at </a>
> <http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html> . I can
> succesfully run clang-check for any source file. I am now trying to compile
> the example at  </a> <http://clang.llvm.org/docs/RAVFrontendAction.html> .
> When using cmake, I get the following error:
>
> Unknown CMake command : add_clang_executable
>
>   When using cmake to build clang, I used -DEXPORT_CMAKE_COMPILE_COMMANDS=ON
> variable as suggested. Then why isn't this command working?

My best guess would be that you don't have a version of cmake that
supports this command, but I don't really know. This functionality was
only added (to both Clang an CMake) in the last 6 months or so.

>
> Regards,
> Adil
>
>
>
> --
> View this message in context: http://clang-developers.42468.n3.nabble.com/LibTooling-CMake-Error-tp4027570.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list