* CMakeLists.txt: Accommodate MingGW.

See https://github.com/StephanTLavavej/mingw-distro/issues/97.
This commit is contained in:
Alexei Podtelezhnikov 2024-01-13 22:28:54 -05:00
parent 7bac4d146a
commit 6d9147263b
1 changed files with 4 additions and 4 deletions

View File

@ -297,7 +297,7 @@ if (NOT FT_DISABLE_BROTLI)
endif ()
# Create the configuration file
if (UNIX)
if (UNIX AND NOT WIN32)
check_include_file("unistd.h" HAVE_UNISTD_H)
check_include_file("fcntl.h" HAVE_FCNTL_H)
@ -423,10 +423,10 @@ set(BASE_SRCS
src/winfonts/winfnt.c
)
if (UNIX)
list(APPEND BASE_SRCS "builds/unix/ftsystem.c")
elseif (WIN32)
if (WIN32)
list(APPEND BASE_SRCS "builds/windows/ftsystem.c")
elseif (UNIX)
list(APPEND BASE_SRCS "builds/unix/ftsystem.c")
else ()
list(APPEND BASE_SRCS "src/base/ftsystem.c")
endif ()