summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2014-02-20 17:43:31 +0000
committerJordan Rose <jordan_rose@apple.com>2014-02-20 17:43:31 +0000
commitee9808dfdfc549eef77383bb436d49fbf891e497 (patch)
tree1244351a96d13fbaf5f977e338e70a59de1162c3 /clang/lib/Serialization/ModuleManager.cpp
parente9391a5cfc1d7e1ba17bf84603643e33ff2f5f5a (diff)
downloadbcm5719-llvm-ee9808dfdfc549eef77383bb436d49fbf891e497.tar.gz
bcm5719-llvm-ee9808dfdfc549eef77383bb436d49fbf891e497.zip
[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
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud