[cfe-dev] Building clang-extra-tools in visual studio

Paul Hoad via cfe-dev cfe-dev at lists.llvm.org
Mon Sep 14 05:01:32 PDT 2015


I'm sure I'm doing something wrong, but I cannot seem to get
clang-extra-tools to generate vcxproj files for inclusion in the LLVM.sln
without making the following change to CMakeList.txt in
clang/tools/extra/tools

Is there some sort of option I should be passing to CMake to get the extra
tools generated?

I'm currently using the following command to generate the sln/vcxproj files

cmake -DCLANG_ENABLE_STATIC_ANALYZER=ON -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON
-G "Visual Studio 12" ..\llvm

Paul

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 247539)
+++ CMakeLists.txt (working copy)
@@ -21,4 +21,5 @@
 # on top of the Clang tooling platform. We keep them in a separate
repository
 # to keep the primary Clang repository small and focused.
 # It also may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
-add_llvm_external_project(clang-tools-extra extra)
+#add_llvm_external_project(clang-tools-extra extra)
+add_subdirectory(extra)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150914/bb874e1a/attachment.html>


More information about the cfe-dev mailing list