[CMake] BUILD_SHARED_LIBS: Fixup for r202261: Give PULIC to system_libs in LLVMSupport.

llvm-svn: 202263
This commit is contained in:
NAKAMURA Takumi 2014-02-26 12:18:55 +00:00
parent 9201fb9ce7
commit 4ca51b9ace
1 changed files with 9 additions and 1 deletions

View File

@ -142,5 +142,13 @@ if( NOT MSVC )
endif()
endif( MINGW )
endif( NOT MSVC )
target_link_libraries(LLVMSupport ${cmake_2_8_12_INTERFACE} ${system_libs})
if(POLICY CMP0022 AND BUILD_SHARED_LIBS)
# FIXME: Should this be really PUBLIC?
target_link_libraries(LLVMSupport PUBLIC ${system_libs})
else()
target_link_libraries(LLVMSupport ${cmake_2_8_12_INTERFACE} ${system_libs})
endif()
set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${system_libs}")