]> granicus.if.org Git - llvm/commit
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)
commitadbd909be70e7310a5bb88fb57a6d0babb70409a
treed769be20caa81d7a574eeace4b1d31f3bdef8faf
parent8fc9b4d314c49fa3e20f1f91d09d6160502a8e1e
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286209 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
cmake/modules/CMakeLists.txt