Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 82c7055b authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

GenPkgConfig.cmake: fix lib list using REGEX REPLACE

parent 13f4c856
No related branches found
No related tags found
No related merge requests found
......@@ -102,9 +102,9 @@ macro(gpc_convert_libstyle_to_pkgconfig _liblist)
get_filename_component(dep_libname ${_dep} NAME)
get_filename_component(dep_libdir ${_dep} PATH)
foreach( _ext ${CMAKE_FIND_LIBRARY_SUFFIXES} )
string(REPLACE "${_ext}$" "" dep_libname "${dep_libname}")
string(REGEX REPLACE "${_ext}$" "" dep_libname "${dep_libname}")
endforeach()
string(REPLACE "^lib" "" dep_libname "${dep_libname}")
string(REGEX REPLACE "^lib" "" dep_libname "${dep_libname}")
list(APPEND ${_liblist} -L${dep_libdir} -l${dep_libname})
elseif(NOT ${_dep} MATCHES "^-")
list(APPEND ${_liblist} "-l${_dep}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment