Blame |
Last modification |
View Log
| Download
| RSS feed
# Returns library name for a given path.
set(prefixes
${CMAKE_FIND_LIBRARY_PREFIXES})
set(suffixes
${CMAKE_FIND_LIBRARY_SUFFIXES})
list(FILTER prefixes EXCLUDE
REGEX "^\\s*$")
list(FILTER suffixes EXCLUDE
REGEX "^\\s*$")
string(REPLACE ";" "|" prefixes
"${prefixes}")
string(REGEX REPLACE "^(${prefixes})" "" path
${path})
string(REPLACE ";" "|" suffixes
"${suffixes}")
string(REGEX REPLACE "(${suffixes})$" "" path
${path})
set(${name} "${path}" PARENT_SCOPE)