cmake: avoid poll() on macOS
... like we do in configure builds. Since poll() on macOS is not reliable enough. Reported-by: marc-groundctl Fixes #7595 Closes #7619
This commit is contained in:
parent
e5d77dc2ca
commit
825911be58
@ -237,6 +237,9 @@ endif()
|
|||||||
unset(CMAKE_TRY_COMPILE_TARGET_TYPE)
|
unset(CMAKE_TRY_COMPILE_TARGET_TYPE)
|
||||||
|
|
||||||
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
||||||
|
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
# only try this on non-macOS
|
||||||
|
|
||||||
# if not cross-compilation...
|
# if not cross-compilation...
|
||||||
include(CheckCSourceRuns)
|
include(CheckCSourceRuns)
|
||||||
set(CMAKE_REQUIRED_FLAGS "")
|
set(CMAKE_REQUIRED_FLAGS "")
|
||||||
@ -279,5 +282,6 @@ if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}" HAVE_POLL_FINE)
|
}" HAVE_POLL_FINE)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user