From 77665b0b42f6a1a077e22f13dc6267376400f0c6 Mon Sep 17 00:00:00 2001 From: take-cheeze Date: Tue, 5 Nov 2024 22:00:35 +0900 Subject: [PATCH] Fix symbolize detection on macOS --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59bac783e..f3dba78f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -278,12 +278,12 @@ if (WITH_SYMBOLIZE) if (HAVE_SYMBOLIZE) set (HAVE_STACKTRACE 1) endif (HAVE_SYMBOLIZE) + elseif (APPLE AND HAVE_DLADDR) + set (HAVE_SYMBOLIZE 1) elseif (UNIX) if (HAVE_ELF_H OR HAVE_SYS_EXEC_ELF_H) set (HAVE_SYMBOLIZE 1) endif (HAVE_ELF_H OR HAVE_SYS_EXEC_ELF_H) - elseif (APPLE AND HAVE_DLADDR) - set (HAVE_SYMBOLIZE 1) endif (WIN32 OR CYGWIN) endif (WITH_SYMBOLIZE)