summaryrefslogtreecommitdiff
path: root/start
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2026-03-15 23:53:28 +0100
committerGitHub <noreply@github.com>2026-03-16 00:53:28 +0200
commit30c498acf4173930dfd8afd6279ebceacb1941e9 (patch)
treedc4838dda9466f1088507b80806a49e6a142deb6 /start
parent902e8de7f0a8cf60ed175f63506d5644605a8e44 (diff)
build: add glaze dependency with FetchContent fallback (#13666)
Diffstat (limited to 'start')
-rw-r--r--start/CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/start/CMakeLists.txt b/start/CMakeLists.txt
index 00b1fded..d0c40ceb 100644
--- a/start/CMakeLists.txt
+++ b/start/CMakeLists.txt
@@ -11,11 +11,27 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(starthyprland_deps REQUIRED IMPORTED_TARGET hyprutils>=0.10.3)
+find_package(glaze 7...<8 QUIET)
+if (NOT glaze_FOUND)
+ set(GLAZE_VERSION v7.2.0)
+ message(STATUS "start: glaze dependency not found, retrieving ${GLAZE_VERSION} with FetchContent")
+ include(FetchContent)
+ FetchContent_Declare(
+ glaze
+ GIT_REPOSITORY https://github.com/stephenberry/glaze.git
+ GIT_TAG ${GLAZE_VERSION}
+ GIT_SHALLOW TRUE
+ EXCLUDE_FROM_ALL
+ )
+ FetchContent_MakeAvailable(glaze)
+endif()
+
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
add_executable(start-hyprland ${SRCFILES})
target_link_libraries(start-hyprland PUBLIC PkgConfig::starthyprland_deps)
+target_link_libraries(start-hyprland PUBLIC glaze::glaze)
install(TARGETS start-hyprland)