CMake: Fix mingw32 build.

llvm-svn: 113677
This commit is contained in:
Michael J. Spencer 2010-09-11 02:13:48 +00:00
parent 7c3a5ee996
commit 9efc54890d
2 changed files with 8 additions and 4 deletions

View File

@ -88,13 +88,15 @@ macro(add_clang_library name)
if( LLVM_LINK_COMPONENTS )
llvm_config(${name} ${LLVM_LINK_COMPONENTS})
endif( LLVM_LINK_COMPONENTS )
get_system_libs(llvm_system_libs)
if( llvm_system_libs )
target_link_libraries(${name} ${llvm_system_libs})
endif( llvm_system_libs )
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()
add_dependencies(${name} ClangDiagnosticCommon)
if(MSVC)
get_target_property(cflag ${name} COMPILE_FLAGS)

View File

@ -46,8 +46,10 @@ target_link_libraries(clangCodeGen
)
add_dependencies(clangCodeGen
ClangARMNeon
ClangAttrClasses
ClangAttrList
ClangDeclNodes
ClangStmtNodes
ClangDiagnosticFrontend
)