summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-02-13 15:57:55 +0000
committerAzat Khuzhin <a3at.mail@gmail.com>2023-04-04 22:04:17 +0200
commit1878232bd5b09bd43b65d48aa55db8de73dbc9cc (patch)
tree9f81d527336000114d62e2f16a67e8f9a032fd85
parentfc568ff045e6a8956221c3f095ed8e7200fa5f74 (diff)
downloadlibevent-1878232bd5b09bd43b65d48aa55db8de73dbc9cc.tar.gz
build: split kqueue warning message into cross-compile and apple
This is output when compiling (natively) on macOS systems, which is confusing, because no cross-compilation is involved. Split the message into separate cases.
-rw-r--r--CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 721eb9b4..19a1f1e1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -729,8 +729,13 @@ CHECK_TYPE_SIZE("time_t" EVENT__SIZEOF_TIME_T)
# Verify kqueue works with pipes.
if (EVENT__HAVE_KQUEUE)
- if ((CMAKE_CROSSCOMPILING OR APPLE) AND NOT EVENT__FORCE_KQUEUE_CHECK)
- message(WARNING "Cannot check if kqueue works with pipes when crosscompiling, use EVENT__FORCE_KQUEUE_CHECK to be sure (this requires manually running a test program on the cross compilation target)")
+ if (CMAKE_CROSSCOMPILING AND NOT EVENT__FORCE_KQUEUE_CHECK)
+ message(WARNING "Cannot check if kqueue works with pipes when crosscompiling.
+ Use EVENT__FORCE_KQUEUE_CHECK to be sure (this requires running a test program on the cross compilation target)")
+ set(EVENT__HAVE_WORKING_KQUEUE 1)
+ elseif (APPLE AND NOT EVENT__FORCE_KQUEUE_CHECK)
+ message(WARNING "Cannot check if kqueue works with pipes on macOS.
+ Use EVENT__FORCE_KQUEUE_CHECK to be sure (this requires running a test program).")
set(EVENT__HAVE_WORKING_KQUEUE 1)
else()
message(STATUS "Checking if kqueue works with pipes...")