CMake: Fix locale_t type check
Test failed when xlocale.h did not exist.
This commit is contained in:
@@ -641,7 +641,10 @@ endif()
|
|||||||
|
|
||||||
if(wxUSE_XLOCALE)
|
if(wxUSE_XLOCALE)
|
||||||
check_include_file(xlocale.h HAVE_XLOCALE_H)
|
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)
|
check_type_size(locale_t LOCALE_T)
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES)
|
set(CMAKE_EXTRA_INCLUDE_FILES)
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user