From 0297f510fe656d2b42a9a24b2f85082e9d981346 Mon Sep 17 00:00:00 2001 From: Tim Hutton Date: Sun, 9 Jun 2024 22:29:39 +0100 Subject: [PATCH] Update wxgtk cmake step --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 457686ad..bad824ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -456,6 +456,10 @@ else() pkg_check_modules(GTK3 REQUIRED gtk+-3.0) include_directories(${GTK3_INCLUDE_DIRS}) link_libraries(${GTK3_LIBRARIES}) + elseif("-lwx_gtk3u_core-3.2" IN_LIST wxWidgets_LIBRARIES) + pkg_check_modules(GTK3 REQUIRED gtk+-3.2) + include_directories(${GTK3_INCLUDE_DIRS}) + link_libraries(${GTK3_LIBRARIES}) else() message(FATAL_ERROR "Didn't find -lwx_gtk2u_core-3.0 or -lwx_gtk3u_core-3.0 in wxWidgets_LIBRARIES - unable to detect GTK version to use: ${wxWidgets_LIBRARIES}") endif()