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

When using LLVM_DISTRIBUTION_COMPONENTS, it's possible for LLVM'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: 286209
llvm/cmake/modules/AddLLVM.cmake
llvm/cmake/modules/CMakeLists.txt