cmake: Don't try to install exports if there aren't any
authorJustin Bogner <mail@justinbogner.com>
Tue, 8 Nov 2016 05:02:33 +0000 (05:02 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 8 Nov 2016 05:02:33 +0000 (05:02 +0000)
commit5ca4d5f5fe3094beaeb2fca3be046a3191f67702
tree1bc78429a1ce57ae1fb26b57de1b13a92e085d62
parent80bee97477940a421c89fc832898369e4097355f
cmake: Don't try to install exports if there aren't any

When using LLVM_DISTRIBUTION_COMPONENTS, it's possible for clang's
export list to be empty. If this happens the install(EXPORTS) command
will fail, but since there isn't anything to install anyway we really
just want to skip it.

llvm-svn: 286210
clang/cmake/modules/AddClang.cmake
clang/cmake/modules/CMakeLists.txt