diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2009-06-04 19:53:37 +0000 |
---|---|---|
committer | Douglas Gregor <doug.gregor@gmail.com> | 2009-06-04 19:53:37 +0000 |
commit | 92aa9782a9bc0aacc8d30bf24024a77371241ce8 (patch) | |
tree | 019512dcfbf14306615922d944b429afbf3f5481 /cmake/modules/AddLLVM.cmake | |
parent | fe15a72c4db41dbfc14bb607eeebcc7505c61a30 (diff) | |
download | external_llvm-92aa9782a9bc0aacc8d30bf24024a77371241ce8.zip external_llvm-92aa9782a9bc0aacc8d30bf24024a77371241ce8.tar.gz external_llvm-92aa9782a9bc0aacc8d30bf24024a77371241ce8.tar.bz2 |
CMake: Use explicit dependencies for Xcode (as well as MSVC), to make
the CMake-generated Xcode project build properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rwxr-xr-x | cmake/modules/AddLLVM.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index c531298..a21ed20 100755 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -26,11 +26,11 @@ macro(add_llvm_executable name) if( LLVM_LINK_COMPONENTS ) llvm_config(${name} ${LLVM_LINK_COMPONENTS}) endif( LLVM_LINK_COMPONENTS ) - if( MSVC ) + if( USE_EXPLICIT_DEPENDENCIES ) target_link_libraries(${name} ${llvm_libs}) - else( MSVC ) + else( ) add_dependencies(${name} llvm-config.target) - endif( MSVC ) + endif( ) get_system_libs(llvm_system_libs) if( llvm_system_libs ) target_link_libraries(${name} ${llvm_system_libs}) |