Commit 0489756d authored by Rafael Kitover's avatar Rafael Kitover
Browse files

fix $ENV{WX_CONFIG} check in 46f52941

Apparently in cmake empty env vars do not evaluate to false, use
explicit STREQUAL "".
parent 46f52941
...@@ -80,7 +80,7 @@ set(wxWidgets_USE_LIBS xrc xml html adv net core base) ...@@ -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 # 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. # Do not do the check if the WX_CONFIG env var is set.
if(NOT $ENV{WX_CONFIG}) if($ENV{WX_CONFIG} STREQUAL "")
foreach(gtk_ver 4 3) foreach(gtk_ver 4 3)
set(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk${gtk_ver}) set(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk${gtk_ver})
find_package(wxWidgets QUIET) find_package(wxWidgets QUIET)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment