Try to fix macOS build using cmake after xlocale changes
Commit bc13119494
removed the inclusion of
xlocale.h because it is not (and never was) needed under Linux with
glibc, but it is still needed under macOS, so this (silently) disabled
wxXLocale support under Mac when using configure and broke the build
when using cmake.
Fix both problems by using xlocale.h only if it's available, both in
configure and in cmake.
This commit is contained in:
@@ -649,6 +649,7 @@ if(wxUSE_FSWATCHER)
|
||||
endif()
|
||||
|
||||
if(wxUSE_XLOCALE)
|
||||
check_include_file(xlocale.h HAVE_XLOCALE_H)
|
||||
set(CMAKE_EXTRA_INCLUDE_FILES xlocale.h locale.h)
|
||||
check_type_size(locale_t LOCALE_T)
|
||||
set(CMAKE_EXTRA_INCLUDE_FILES)
|
||||
|
Reference in New Issue
Block a user