r361334 - Fix target property to make BUILD_SHARED_LIBS work
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Tue May 21 16:50:15 PDT 2019
Author: cbieneman
Date: Tue May 21 16:50:15 2019
New Revision: 361334
URL: http://llvm.org/viewvc/llvm-project?rev=361334&view=rev
Log:
Fix target property to make BUILD_SHARED_LIBS work
Public and Private link libraries get merged in the LINK_LIBRARIES property instead of being kept separate.
With any luck this will get `BUILD_SHARED_LIBS` working again on Linux.
Modified:
cfe/trunk/tools/clang-shlib/CMakeLists.txt
Modified: cfe/trunk/tools/clang-shlib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-shlib/CMakeLists.txt?rev=361334&r1=361333&r2=361334&view=diff
==============================================================================
--- cfe/trunk/tools/clang-shlib/CMakeLists.txt (original)
+++ cfe/trunk/tools/clang-shlib/CMakeLists.txt Tue May 21 16:50:15 2019
@@ -8,7 +8,7 @@ get_property(clang_libs GLOBAL PROPERTY
foreach (lib ${clang_libs})
list(APPEND _OBJECTS $<TARGET_OBJECTS:obj.${lib}>)
list(APPEND _DEPS $<TARGET_PROPERTY:${lib},INTERFACE_LINK_LIBRARIES>)
- list(APPEND _DEPS $<TARGET_PROPERTY:${lib},PRIVATE_LINK_LIBRARIES>)
+ list(APPEND _DEPS $<TARGET_PROPERTY:${lib},LINK_LIBRARIES>)
endforeach ()
add_clang_library(clang_shared
More information about the cfe-commits
mailing list