cmake does not generate eclipse project files of clang/llvm

I want to build clang/llvm on Eclipse IDE.Thus want to create eclipse
project files.
These are the steps followed. LLVM sources are already checked out using

$cmake -G "Eclipse CDT4 - Unix Makefiles" ../llvm
-- No build type selected, default to Debug
-- Target triple: x86_64-unknown-linux-gnu
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION
-- OCaml bindings disabled.
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting AArch64
-- Targeting Cpu0
-- Compiler-RT supported architectures: x86_64
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
-- Clang version: 3.7.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chips/clang-llvm/build

build]$ ls
bin CMakeCache.txt cmake_install.cmake CPackSourceConfig.cmake
DummyConfigureOutput include LLVMBuild.cmake projects test unittests
cmake CMakeFiles CPackConfig.cmake docs
examples lib Makefile share tools utils

I do NOT see eclipse project (.projects) in the build folder. Is something a
miss? Please advice.


It seems that project file name is blank, so the file ends up being named .project and is considered hidden because of the leading dot. That’s silly :slight_smile:

AFAICR, .project works well with Eclipse. This shouldn't be a problem.
Also, make sure you get the .cproject file, as that's CDT's own
configuration, independent of the Eclipse one.