diff options
author | vaxerski <[email protected]> | 2023-10-11 17:18:41 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-10-11 17:18:46 +0100 |
commit | ff0afe7483d07955fb4d9fb1bdb2adf8a1056dab (patch) | |
tree | 3e89ab78b1fce84f288398cb1718a874086059b8 | |
parent | b8bc3d583434f2a9e566ac6c24f89c81447ffa73 (diff) | |
download | Hyprland-execinfo.tar.gz Hyprland-execinfo.zip |
move check in cmake upexecinfo
-rw-r--r-- | CMakeLists.txt | 5 |
1 files 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() |