Selaa lähdekoodia

Handle arguments that have the -l prefix

tags/v1.3.90
Pierre Ossman 9 vuotta sitten
vanhempi
commit
40a5f9ef65
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6
    0
      cmake/Modules/CMakeMacroLibtoolFile.cmake

+ 6
- 0
cmake/Modules/CMakeMacroLibtoolFile.cmake Näytä tiedosto

@@ -46,6 +46,12 @@ macro(libtool_create_control_file _target)
if(NOT _ltp AND NOT ${library} STREQUAL "general")
# Not a CMake target, so use find_library() to attempt to locate the
# library in a system directory.

# Need to remove -l prefix
if (${library} MATCHES "^\\${CMAKE_LINK_LIBRARY_FLAG}")
string(REPLACE ${CMAKE_LINK_LIBRARY_FLAG} "" library ${library})
endif()

find_library(FL ${library})
if(FL)
# Found library, so extract the path and library name, then add the

Loading…
Peruuta
Tallenna