diff options
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/CMakeMacroLibtoolFile.cmake | 12 |
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}]$") |