From f212d856b3077ad4185daa481c48a0d06bcd4611 Mon Sep 17 00:00:00 2001 From: Preston Smith Date: Tue, 30 Aug 2016 17:31:22 -0500 Subject: [PATCH] Fix wxWidgets build for 32-bit arch --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce080ded3b..de4ba36deb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -848,6 +848,10 @@ if(NOT DISABLE_WX) include(FindwxWidgets OPTIONAL) FIND_PACKAGE(wxWidgets COMPONENTS core aui adv) + if(_ARCH_32) + add_definitions(-DwxSIZE_T_IS_UINT) + endif() + if(wxWidgets_FOUND) EXECUTE_PROCESS(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMAND sh "${wxWidgets_CONFIG_EXECUTABLE}"