Merge topic 'release-cygwin-ncurses'

0f5c711 Cygwin: Fix release script libncurses search patterns (#10766)
This commit is contained in:
Brad King 2010-12-16 14:00:21 -05:00 committed by CMake Topic Stage
commit 58347549e6
1 changed files with 2 additions and 2 deletions

View File

@ -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)