From cdfcef4d634ece78a4829e2b3a1cfee180353f56 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Tue, 27 Oct 2020 15:31:39 +0100 Subject: [PATCH] CMakeLists: use HAVE_LIBEXECINFO only after actually checking for it So far, the check that actually sets HAVE_LIBEXECINFO was executed after it was already used to add dependencies. --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9229656df..1f66e58db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,10 +203,6 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/lib ) -if(HAVE_LIBEXECINFO) - list(APPEND base_DEPS execinfo) -endif() - if(UNIX OR CYGWIN) list(APPEND base_OBJS $) endif() @@ -365,6 +361,7 @@ check_include_file_cxx(cxxabi.h HAVE_CXXABI_H) if(HAVE_LIBEXECINFO) set(HAVE_BACKTRACE_SYMBOLS TRUE) + list(APPEND base_DEPS execinfo) endif() if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")