From 3d9ee4852af0674b967187ddb08bbe1be4f84e41 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Thu, 21 Nov 2019 21:22:38 +0100 Subject: [PATCH] CMake: fix build with wxUSE_OLE disabled wxDirDialog falls back to using wxGenericDirDialog, add this file to the sources. --- build/cmake/lib/core/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/cmake/lib/core/CMakeLists.txt b/build/cmake/lib/core/CMakeLists.txt index e991c3d3e3..825fc081f3 100644 --- a/build/cmake/lib/core/CMakeLists.txt +++ b/build/cmake/lib/core/CMakeLists.txt @@ -25,6 +25,9 @@ if(WXMSW) wx_append_sources(CORE_SRC MSW_DESKTOP_LOWLEVEL) wx_append_sources(CORE_SRC MSW) wx_append_sources(CORE_SRC MSW_DESKTOP) + if(NOT wxUSE_OLE) + wx_list_add_prefix(CORE_SRC "${wxSOURCE_DIR}/" "src/generic/dirdlgg.cpp") + endif() elseif(WXGTK) if(WXGTK2) wx_append_sources(CORE_SRC GTK2_LOWLEVEL)