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)