@@ -330,39 +330,39 @@ add_compile_definitions(_XOPEN_SOURCE=600)
330330# Somehow in OpenBSD whenever POSIX conformance is specified
331331# some string functions rely on locale_t availability,
332332# which was introduced in POSIX.1-2008, forcing us to go higher
333- IF (CMAKE_SYSTEM_NAME MATCHES "OpenBSD" )
333+ if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD" )
334334 remove_definitions (-D_XOPEN_SOURCE=600)
335335 add_compile_definitions (_XOPEN_SOURCE=700)
336- ENDIF ()
336+ endif ()
337337
338338# Data types, macros and functions related to controlling CPU affinity
339339# are available on Linux through GNU extensions in libc
340- IF (CMAKE_SYSTEM_NAME MATCHES "Linux" )
340+ if (CMAKE_SYSTEM_NAME MATCHES "Linux" )
341341 add_compile_definitions (_GNU_SOURCE)
342- ENDIF ()
342+ endif ()
343343
344344# RLIMIT_MEMLOCK came in BSD, is not specified in POSIX.1,
345345# and on macOS its availability depends on enabling Darwin extensions
346346# similarly on DragonFly, enabling BSD extensions is necessary
347- IF (CMAKE_SYSTEM_NAME MATCHES "Darwin" )
347+ if (CMAKE_SYSTEM_NAME MATCHES "Darwin" )
348348 add_compile_definitions (_DARWIN_C_SOURCE)
349- ENDIF ()
350- IF (CMAKE_SYSTEM_NAME MATCHES "DragonFly" )
349+ endif ()
350+ if (CMAKE_SYSTEM_NAME MATCHES "DragonFly" )
351351 add_compile_definitions (_DARWIN_C_SOURCE)
352- ENDIF ()
352+ endif ()
353353
354354# alloca is a non-standard interface that is not visible on BSDs when
355355# POSIX conformance is specified, but not all of them provide a clean way
356356# to enable it in such cases
357- IF (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
357+ if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
358358 add_compile_definitions (__BSD_VISIBLE)
359- ENDIF ()
360- IF (CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
359+ endif ()
360+ if (CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
361361 add_compile_definitions (_NETBSD_SOURCE)
362- ENDIF ()
363- IF (CMAKE_SYSTEM_NAME MATCHES "OpenBSD" )
362+ endif ()
363+ if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD" )
364364 add_compile_definitions (_BSD_SOURCE)
365- ENDIF ()
365+ endif ()
366366
367367if (WHISPER_PERF)
368368 set (WHISPER_EXTRA_FLAGS ${WHISPER_EXTRA_FLAGS} -DGGML_PERF)
0 commit comments