diff --git a/CMakeLists.txt b/CMakeLists.txt index 3648c82e52..1e13aef68b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -433,8 +433,15 @@ if(NOT DISABLE_WX) message(FATAL_ERROR "wxWidgets not found. It is required to build the GUI") endif() message("Shared wxWidgets not found, falling back to the static library") - include_directories(Externals/wxWidgets/include) - add_subdirectory(Externals/wxWidgets) + if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + add_definitions(-D__WXOSX_COCOA__) + include_directories(Externals/wxWidgets3) + include_directories(Externals/wxWidgets3/include) + add_subdirectory(Externals/wxWidgets3) + else() + include_directories(Externals/wxWidgets/include) + add_subdirectory(Externals/wxWidgets) + endif() endif(wxWidgets_FOUND) add_definitions(-DHAVE_WX=1) endif(NOT DISABLE_WX)