aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Modules
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-11-03 14:18:44 +0100
committerPierre Ossman <ossman@cendio.se>2014-11-03 14:18:44 +0100
commit216d591f41c034b9af60f02b9e355fa12d5a5f83 (patch)
tree53871afcdaf0f09041fd25dd2e5895a4ac229163 /cmake/Modules
parent818550b54dd9e32ff8fdb7d90c86c79626985354 (diff)
downloadtigervnc-216d591f41c034b9af60f02b9e355fa12d5a5f83.tar.gz
tigervnc-216d591f41c034b9af60f02b9e355fa12d5a5f83.zip
Split up any entries that contain multiple link arguments
This happens sometimes in order to enforce a strict ordering.
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/CMakeMacroLibtoolFile.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/Modules/CMakeMacroLibtoolFile.cmake b/cmake/Modules/CMakeMacroLibtoolFile.cmake
index a265789e..eb2e9bae 100644
--- a/cmake/Modules/CMakeMacroLibtoolFile.cmake
+++ b/cmake/Modules/CMakeMacroLibtoolFile.cmake
@@ -14,7 +14,19 @@ macro(libtool_create_control_file _target)
# into libtool control file as library dependencies, and handle a few corner
# cases.
#
+
+ # First we need to split up any internal entries
+ set(target_libs "")
foreach(library ${${_target}_LIB_DEPENDS})
+ if("${library}" MATCHES " ")
+ string(REPLACE " " ";" lib_list "${library}")
+ list(APPEND target_libs ${lib_list})
+ else()
+ list(APPEND target_libs "${library}")
+ endif()
+ endforeach()
+
+ foreach(library ${target_libs})
# Assume all entries are shared libs if platform-specific static library
# extension is not matched.
if("${library}" MATCHES "[^.+\\${CMAKE_STATIC_LIBRARY_SUFFIX}]$")