From 96c4aad4afa70c5e7ca28c8e18b7c6a92317ad4b Mon Sep 17 00:00:00 2001 From: Andrei Astafev Date: Sat, 3 Feb 2024 12:14:22 +0300 Subject: [PATCH] Minimal version of wxWidgets set in CMake --- CMakeLists.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bbf3c27..f84fd13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,15 +46,15 @@ else() include_directories(${LIBXML2_INCLUDE_DIR}) link_libraries(${LIBXML2_LIBRARIES}) endif() -find_package(wxWidgets REQUIRED stc aui base net core xrc html xml) - if(NOT wxWidgets_FOUND) - message(SEND_ERROR "Failed to find wxWidgets ") - return() - else() - include(${wxWidgets_USE_FILE}) - include_directories(${wxWidgets_INCLUDE_DIRS}) - link_libraries(${wxWidgets_LIBRARIES}) - endif() +find_package(wxWidgets 3.2 REQUIRED stc aui base net core xrc html xml) +if(NOT wxWidgets_FOUND) + message(SEND_ERROR "Failed to find wxWidgets ") + return() +else() + include(${wxWidgets_USE_FILE}) + include_directories(${wxWidgets_INCLUDE_DIRS}) + link_libraries(${wxWidgets_LIBRARIES}) +endif() find_package(PostgreSQL REQUIRED) if(NOT PostgreSQL_FOUND)