From ff0afe7483d07955fb4d9fb1bdb2adf8a1056dab Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:18:41 +0100 Subject: move check in cmake up --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 44d2d61d..b67314bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,13 +97,14 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) add_link_options(-pg -no-pie -fno-builtin) endif() -include(CheckLibraryExists) -check_library_exists(execinfo backtrace "" HAVE_LIBEXECINFO) check_include_file("execinfo.h" EXECINFOH) if(EXECINFOH) message(STATUS "Configuration supports execinfo") add_compile_definitions(HAS_EXECINFO) endif() + +include(CheckLibraryExists) +check_library_exists(execinfo backtrace "" HAVE_LIBEXECINFO) if(HAVE_LIBEXECINFO) target_link_libraries(Hyprland execinfo) endif() -- cgit v1.2.3