diff --git a/CMakeLists.txt b/CMakeLists.txt index d9f5471033..dcef6157bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -439,10 +439,12 @@ if(NOT DISABLE_WX) include_directories(Externals/wxWidgets3) include_directories(Externals/wxWidgets3/include) add_subdirectory(Externals/wxWidgets3) + set(wxWidgets_LIBRARIES "${CMAKE_BINARY_DIR}/Externals/wxWidgets3/libwx.a") else() include_directories(Externals/wxWidgets/include) add_subdirectory(Externals/wxWidgets) endif() + set(wxWidgets_FOUND TRUE) endif(wxWidgets_FOUND) add_definitions(-DHAVE_WX=1) endif(NOT DISABLE_WX)