ERR: If WX_CONFIG_LIBS are , then you get weird cmake error. This should fix it
This commit is contained in:
parent
f2e5ccd972
commit
0270b60b8f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue