[CMake] Fix Xcode build with LLVM_ENABLE_OBJLIB.
authorJordan Rose <jordan_rose@apple.com>
Thu, 10 Sep 2015 17:18:51 +0000 (17:18 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 10 Sep 2015 17:18:51 +0000 (17:18 +0000)
commit3d75297056987b74a3a766ea24d21c55b7fdaf66
tree69650163baeca03166a041be46325a1b53655740
parentd209500fd5ef7defaccf91b2cc544eafe595c53f
[CMake] Fix Xcode build with LLVM_ENABLE_OBJLIB.

This amends chapuni's r246156 to handle an Xcode quirk, one even called out
in the CMake documentation:

    Some native build systems may not like targets that have only object files,
    so consider adding at least one real source file to any target that
    references $<TARGET_OBJECTS:objlib>.

I've limited the scope of this hack to Xcode for now.

llvm-svn: 247305
llvm/cmake/dummy.cpp [new file with mode: 0644]
llvm/cmake/modules/AddLLVM.cmake