summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/DebianABIManager.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/DebianABIManager.cmake b/cmake/DebianABIManager.cmake
index 5f74869..ffe5538 100644
--- a/cmake/DebianABIManager.cmake
+++ b/cmake/DebianABIManager.cmake
@@ -13,10 +13,13 @@ function(DEBABI_SPLIT_PKGNAME pkg targetvar soversionvar)
set(pkg_noabi ${pkg})
endif (debabi_${pkg}_Debian-ABI GREATER 0)
# Parse package name
- if (${pkg_noabi} MATCHES "^lib(.+)([0-9]+)[a-f]?$")
+ if (${pkg_noabi} MATCHES "^lib(.+[0-9])-([0-9]+)[a-f]?$")
set(t ${CMAKE_MATCH_1})
set(pkgsv ${CMAKE_MATCH_2})
- endif (${pkg_noabi} MATCHES "^lib(.+)([0-9]+)[a-f]?$")
+ elseif (${pkg_noabi} MATCHES "^lib(.+)([0-9]+)[a-f]?$")
+ set(t ${CMAKE_MATCH_1})
+ set(pkgsv ${CMAKE_MATCH_2})
+ endif (${pkg_noabi} MATCHES "^lib(.+[0-9])-([0-9]+)[a-f]?$")
endif (DEFINED debabi_${pkg}_CMake-Target)
if (t STREQUAL "" OR NOT(TARGET ${t}))
message(STATUS "DebianABIManager: unable to find CMake target '${t}' for package '${pkg}'. Please set X-CMake-Target")