CMake: fix build with wxUSE_OLE disabled

wxDirDialog falls back to using wxGenericDirDialog, add this file to the
sources.
This commit is contained in:
Maarten Bent 2019-11-21 21:22:38 +01:00
parent b42de093f6
commit 3d9ee4852a

View File

@ -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)