diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 13aceb998..a0becdab9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -62,7 +62,8 @@ if (SLIC3R_GUI) include(${wxWidgets_USE_FILE}) else () find_package(wxWidgets 3.1 COMPONENTS html adv gl core base) - if (wxWidgets_NOTFOUND) + if (NOT wxWidgets_FOUND) + message(STATUS "Trying to find wxWidgets in CONFIG mode...") find_package(wxWidgets 3.2 CONFIG REQUIRED COMPONENTS html adv gl core base) else () include(${wxWidgets_USE_FILE})