aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-09-11 02:13:39 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-09-11 02:13:39 +0000
commit1c4e934666b3fa672a3dd8f933671da4b95447db (patch)
tree0359d59007afac870e9bb2ffeaec3aa3de965fed /cmake
parent8be452545a1d3921f006c4d5673f14165ceead82 (diff)
downloadexternal_llvm-1c4e934666b3fa672a3dd8f933671da4b95447db.zip
external_llvm-1c4e934666b3fa672a3dd8f933671da4b95447db.tar.gz
external_llvm-1c4e934666b3fa672a3dd8f933671da4b95447db.tar.bz2
CMake: Fix mingw32 build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/modules/AddLLVM.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 6291ad1..52864d2 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -78,16 +78,18 @@ macro(add_llvm_executable name)
target_link_libraries( ${name} ${lib} )
endforeach(lib)
endif( LLVM_USED_LIBS )
- get_system_libs(llvm_system_libs)
- if( llvm_system_libs )
- target_link_libraries(${name} ${llvm_system_libs})
- endif()
if( LLVM_COMMON_DEPENDS )
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
endif( LLVM_COMMON_DEPENDS )
if (LLVM_COMMON_LIBS)
target_link_libraries(${name} ${LLVM_COMMON_LIBS})
endif()
+ if( NOT MINGW )
+ get_system_libs(llvm_system_libs)
+ if( llvm_system_libs )
+ target_link_libraries(${name} ${llvm_system_libs})
+ endif()
+ endif()
endmacro(add_llvm_executable name)