diff options
| author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-11 02:13:39 +0000 |
|---|---|---|
| committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-11 02:13:39 +0000 |
| commit | 7c3a5ee9961a96f5f6cfb2d57489f9b538b187b3 (patch) | |
| tree | 594baf74544a155085c7428f84fa0c078bbfb1e4 /llvm/cmake/modules/AddLLVM.cmake | |
| parent | 933c6723a43f26ff55cfa582a5826fc3c798bc7f (diff) | |
| download | bcm5719-llvm-7c3a5ee9961a96f5f6cfb2d57489f9b538b187b3.tar.gz bcm5719-llvm-7c3a5ee9961a96f5f6cfb2d57489f9b538b187b3.zip | |
CMake: Fix mingw32 build.
llvm-svn: 113676
Diffstat (limited to 'llvm/cmake/modules/AddLLVM.cmake')
| -rwxr-xr-x | llvm/cmake/modules/AddLLVM.cmake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 6291ad1d2ee..52864d2e95d 100755 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/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) |

