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

NAKAMURA Takumi geek4civic at gmail.com
Wed Feb 26 04:18:55 PST 2014


Author: chapuni
Date: Wed Feb 26 06:18:55 2014
New Revision: 202263

URL: http://llvm.org/viewvc/llvm-project?rev=202263&view=rev
Log:
[CMake] BUILD_SHARED_LIBS: Fixup for r202261: Give PULIC to system_libs in LLVMSupport.

Modified:
    llvm/trunk/lib/Support/CMakeLists.txt

Modified: llvm/trunk/lib/Support/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CMakeLists.txt?rev=202263&r1=202262&r2=202263&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CMakeLists.txt (original)
+++ llvm/trunk/lib/Support/CMakeLists.txt Wed Feb 26 06:18:55 2014
@@ -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}")





More information about the llvm-commits mailing list