CMake: Fix locale_t type check

Test failed when xlocale.h did not exist.
This commit is contained in:
Maarten Bent
2018-12-11 20:37:41 +01:00
parent 0665db6c1d
commit 79344fc5b6

View File

@@ -641,7 +641,10 @@ endif()
if(wxUSE_XLOCALE)
check_include_file(xlocale.h HAVE_XLOCALE_H)
set(CMAKE_EXTRA_INCLUDE_FILES xlocale.h locale.h)
set(CMAKE_EXTRA_INCLUDE_FILES locale.h)
if(HAVE_XLOCALE_H)
list(APPEND CMAKE_EXTRA_INCLUDE_FILES xlocale.h)
endif()
check_type_size(locale_t LOCALE_T)
set(CMAKE_EXTRA_INCLUDE_FILES)
endif()