GeneratePkgConfig: fix dependent library names on Windows.
GitOrigin-RevId: 72de9174b1b9676ef1817b9fe7f2ed893d6c7e16
This commit is contained in:
parent
9a24cd40ec
commit
797d42679f
@ -2,7 +2,7 @@ function(get_relative_link OUTPUT PATH)
|
||||
get_filename_component(NAME ${PATH} NAME_WE)
|
||||
if (${PATH} MATCHES "^[$]<[$]<CONFIG:DEBUG>:")
|
||||
set(LINK "")
|
||||
elseif (${NAME} MATCHES "^lib")
|
||||
elseif (NOT WIN32 AND ${NAME} MATCHES "^lib")
|
||||
string(REGEX REPLACE "^lib" "-l" LINK ${NAME})
|
||||
elseif (${NAME} MATCHES "^-")
|
||||
set(LINK ${NAME})
|
||||
|
Loading…
Reference in New Issue
Block a user