FindwxWidgets.cmake: Simplify MATCHES
Arbitrary characters at beginning and end of the line are implicitly allowed anyway
This commit is contained in:
parent
ea4c8c546f
commit
2f1bbdc0f3
|
@ -531,7 +531,7 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
|
|||
|
||||
if(WX_LIB_DIR)
|
||||
# If building shared libs, define WXUSINGDLL to use dllimport.
|
||||
if(WX_LIB_DIR MATCHES ".*[dD][lL][lL].*")
|
||||
if(WX_LIB_DIR MATCHES "[dD][lL][lL]")
|
||||
set(wxWidgets_DEFINITIONS WXUSINGDLL)
|
||||
DBG_MSG_V("detected SHARED/DLL tree WX_LIB_DIR=${WX_LIB_DIR}")
|
||||
endif()
|
||||
|
@ -639,7 +639,7 @@ else()
|
|||
if(_wx_result EQUAL 0)
|
||||
foreach(_opt_name debug static unicode universal)
|
||||
string(TOUPPER ${_opt_name} _upper_opt_name)
|
||||
if(_wx_selected_config MATCHES ".*${_opt_name}.*")
|
||||
if(_wx_selected_config MATCHES "${_opt_name}")
|
||||
set(wxWidgets_DEFAULT_${_upper_opt_name} ON)
|
||||
else()
|
||||
set(wxWidgets_DEFAULT_${_upper_opt_name} OFF)
|
||||
|
|
Loading…
Reference in New Issue