ERR: If WX_CONFIG_LIBS are , then you get weird cmake error. This should fix it

This commit is contained in:
Andy Cedilnik 2003-08-21 13:26:56 -04:00
parent f2e5ccd972
commit 0270b60b8f
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ IF (UNIX)
## extract linkdirs (-L) for rpath ## extract linkdirs (-L) for rpath
## use regular expression to match wildcard equivalent "-L*<endchar>" ## use regular expression to match wildcard equivalent "-L*<endchar>"
## with <endchar> is a space or a semicolon ## with <endchar> is a space or a semicolon
STRING(REGEX MATCHALL "[-][L]([^ ;])+" WXWINDOWS_LINK_DIRECTORIES_WITH_PREFIX ${WX_CONFIG_LIBS} ) STRING(REGEX MATCHALL "[-][L]([^ ;])+" WXWINDOWS_LINK_DIRECTORIES_WITH_PREFIX "${WX_CONFIG_LIBS}" )
#MESSAGE("DBG WXWINDOWS_LINK_DIRECTORIES_WITH_PREFIX=${WXWINDOWS_LINK_DIRECTORIES_WITH_PREFIX}") #MESSAGE("DBG WXWINDOWS_LINK_DIRECTORIES_WITH_PREFIX=${WXWINDOWS_LINK_DIRECTORIES_WITH_PREFIX}")
## remove prefix -L because we need the pure directory for LINK_DIRECTORIES ## remove prefix -L because we need the pure directory for LINK_DIRECTORIES