llvm-project/clang/examples
Jordan Rose ee9808dfdf [CMake] Fix installation without CLANG_BUILD_EXAMPLES
When CLANG_BUILD_EXAMPLES is not on we set the EXCLUDE_FROM_ALL
directory property for the examples/ directory to tell CMake not to
build them by default.  The AddLLVM.cmake APIs are not aware of this and
try to install targets that are not built.  This does not cause an
install-time error because CMake excludes the directory from the default
installation.  However, now that installation attaches targets to the
LLVMExports export set CMake-based applications that find_package(LLVM)
fail because the example plugin binary is not available.

Tell the AddLLVM.cmake APIs to exclude the examples from installation by
setting the EXCLUDE_FROM_ALL variable they check.

Patch by Brad King!

llvm-svn: 201799
2014-02-20 17:43:31 +00:00
..
PrintFunctionNames [examples] Add tablegen'd ClangCommentCommandList as a dependency for plugins. 2014-02-13 18:12:30 +00:00
analyzer-plugin [examples] Add tablegen'd ClangCommentCommandList as a dependency for plugins. 2014-02-13 18:12:30 +00:00
clang-interpreter [CMake] Update target_link_libraries() and LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 12:40:37 +00:00
CMakeLists.txt [CMake] Fix installation without CLANG_BUILD_EXAMPLES 2014-02-20 17:43:31 +00:00
Makefile examples/analyzer-plugin: hook up to build 2012-02-13 12:32:15 +00:00