Fix Checking locale.h

This commit is contained in:
TheBrokenRail 2022-03-16 18:47:11 -04:00
parent b01f0001ea
commit cdcc55e55f

View File

@ -13,6 +13,13 @@ add_definitions(-D_GNU_SOURCE)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 11)
# locale.h
include(CheckIncludeFile)
CHECK_INCLUDE_FILE("locale.h" HAVE_LOCALE_H)
if(HAVE_LOCALE_H)
add_definitions(-DHAVE_LOCALE_H)
endif()
# GTK+
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED IMPORTED_TARGET "gtk+-3.0>=3.16.0")