fix $ENV{WX_CONFIG} check yet again
The expansion must be quoted as "$ENV{WX_CONFIG}" when passed as a parameter e.g. to if() otherwise it expands to no parameter when empty.
This commit is contained in:
parent
0489756d4c
commit
d160321811
|
@ -80,7 +80,7 @@ set(wxWidgets_USE_LIBS xrc xml html adv net core base)
|
|||
# wx-config utility for these packages to e.g. wx-config-gtk3
|
||||
#
|
||||
# Do not do the check if the WX_CONFIG env var is set.
|
||||
if($ENV{WX_CONFIG} STREQUAL "")
|
||||
if("$ENV{WX_CONFIG}" STREQUAL "")
|
||||
foreach(gtk_ver 4 3)
|
||||
set(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk${gtk_ver})
|
||||
find_package(wxWidgets QUIET)
|
||||
|
|
Loading…
Reference in New Issue