CMakeLists.txt: fix macOS build

master
Přemysl Eric Janouch 2 years ago
parent 023d69bdbf
commit edd849800a
Signed by: p
GPG Key ID: A0420B94F92B9493

@ -42,6 +42,8 @@ if ("${CMAKE_SYSTEM_NAME}" MATCHES "BSD")
# Need this for SIGWINCH in FreeBSD and OpenBSD respectively;
# our POSIX version macros make it undefined
add_definitions (-D__BSD_VISIBLE=1 -D_BSD_SOURCE=1)
elseif (APPLE)
add_definitions (-D_DARWIN_C_SOURCE)
endif ()
set (project_libraries ${LibEV_LIBRARIES} ${Termo_LIBRARIES}

Loading…
Cancel
Save