Merge topic 'release-cygwin-ncurses'
0f5c711
Cygwin: Fix release script libncurses search patterns (#10766)
This commit is contained in:
commit
58347549e6
|
@ -1,8 +1,8 @@
|
|||
FILE(GLOB INSTALLED_CURSES /usr/bin/cygncurses*.dll)
|
||||
FILE(GLOB INSTALLED_CURSES /usr/bin/cygncurses-*.dll)
|
||||
SET(MAX 0)
|
||||
FOREACH(f ${INSTALLED_CURSES})
|
||||
IF(NOT "${f}" MATCHES "\\+")
|
||||
STRING(REGEX REPLACE ".*([0-9]).dll" "\\1" NUMBER "${f}")
|
||||
STRING(REGEX REPLACE ".*-([0-9]*).dll" "\\1" NUMBER "${f}")
|
||||
IF(NUMBER GREATER MAX)
|
||||
SET(MAX ${NUMBER})
|
||||
ENDIF(NUMBER GREATER MAX)
|
||||
|
|
Loading…
Reference in New Issue