From 7fbee547b41e8a9ac57b4038ad41a4001462a144 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 30 Apr 2023 20:31:26 -0700 Subject: [PATCH] Revert "Allow manually specifying hyprland headers" This reverts commit 2ca3a9cc3776135eaeb0725f7ea66cdb42e8c05e. --- CMakeLists.txt | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a598cf..64e3c51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,14 +11,7 @@ if(CMAKE_EXPORT_COMPILE_COMMANDS) endif() find_package(PkgConfig REQUIRED) -pkg_check_modules(DEPS REQUIRED pixman-1 libdrm) - -if(DEFINED ENV{HYPRLAND_INCLUDE}) - set(HYPRLAND_INCLUDE_DIRS $ENV{HYPRLAND_INCLUDE}) - message(STATUS "Using provided hyprland include dir " ${HYPRLAND_INCLUDE_DIRS} " instead of pkg-config") -else() - pkg_check_modules(HYPRLAND REQUIRED hyprland) -endif() +pkg_check_modules(DEPS REQUIRED hyprland pixman-1 libdrm) add_library(hy3 SHARED src/main.cpp @@ -26,6 +19,6 @@ add_library(hy3 SHARED src/SelectionHook.cpp ) -target_include_directories(hy3 PRIVATE ${HYPRLAND_INCLUDE_DIRS} ${DEPS_INCLUDE_DIRS}) +target_include_directories(hy3 PRIVATE ${DEPS_INCLUDE_DIRS}) install(TARGETS hy3 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})