7fbee547b41e8a9ac57b4038ad41a4001462a144

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

Revert "Allow manually specifying hyprland headers"

This reverts commit 2ca3a9cc3776135eaeb0725f7ea66cdb42e8c05e.

Diff

 1diff --git a/CMakeLists.txt b/CMakeLists.txt
 2index 1a598cfeeab48145df5c8a4f6327f53f2008e52a..64e3c51fb5d7c87c832a8421f5c9e8679e4e523c 100644
 3--- a/CMakeLists.txt
 4+++ b/CMakeLists.txt
 5@@ -11,14 +11,7 @@ if(CMAKE_EXPORT_COMPILE_COMMANDS)
 6 endif()
 7 
 8 find_package(PkgConfig REQUIRED)
 9-pkg_check_modules(DEPS REQUIRED pixman-1 libdrm)
10-
11-if(DEFINED ENV{HYPRLAND_INCLUDE})
12-	set(HYPRLAND_INCLUDE_DIRS $ENV{HYPRLAND_INCLUDE})
13-	message(STATUS "Using provided hyprland include dir " ${HYPRLAND_INCLUDE_DIRS} " instead of pkg-config")
14-else()
15-	pkg_check_modules(HYPRLAND REQUIRED hyprland)
16-endif()
17+pkg_check_modules(DEPS REQUIRED hyprland pixman-1 libdrm)
18 
19 add_library(hy3 SHARED
20 	src/main.cpp
21@@ -26,6 +19,6 @@ add_library(hy3 SHARED
22 	src/SelectionHook.cpp
23 )
24 
25-target_include_directories(hy3 PRIVATE ${HYPRLAND_INCLUDE_DIRS} ${DEPS_INCLUDE_DIRS})
26+target_include_directories(hy3 PRIVATE ${DEPS_INCLUDE_DIRS})
27 
28 install(TARGETS hy3 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})