summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Fufezan <mihai@fufexan.net>2025-01-18 10:59:25 +0200
committerGitHub <noreply@github.com>2025-01-18 10:59:25 +0200
commitd01756c1f41977e852eba1cbf45c0149ae0f08e8 (patch)
tree6215d7eb623ed1e188a392ff1bbbe88c8375bc7e
parent078e13f463d56a4e773aa104bca5567b9e9c8658 (diff)
Meson: properly install 'hyprland' symlink (#9091)
-rw-r--r--CMakeLists.txt11
-rw-r--r--src/meson.build6
2 files changed, 15 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c1ecb14c..532f1d95 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -248,7 +248,15 @@ target_precompile_headers(Hyprland PRIVATE
message(STATUS "Setting link libraries")
-target_link_libraries(Hyprland rt PkgConfig::aquamarine_dep PkgConfig::hyprlang_dep PkgConfig::hyprutils_dep PkgConfig::hyprcursor_dep PkgConfig::hyprgraphics_dep PkgConfig::deps)
+target_link_libraries(
+ Hyprland
+ rt
+ PkgConfig::aquamarine_dep
+ PkgConfig::hyprlang_dep
+ PkgConfig::hyprutils_dep
+ PkgConfig::hyprcursor_dep
+ PkgConfig::hyprgraphics_dep
+ PkgConfig::deps)
if(udis_dep_FOUND)
target_link_libraries(Hyprland PkgConfig::udis_dep)
else()
@@ -369,7 +377,6 @@ install(
${CMAKE_INSTALL_FULL_BINDIR}/Hyprland \
\"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/hyprland\" \
)")
-
# session file
install(FILES ${CMAKE_SOURCE_DIR}/example/hyprland.desktop
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/wayland-sessions)
diff --git a/src/meson.build b/src/meson.build
index 2efc2213..7054d8e4 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -49,3 +49,9 @@ executable(
],
install: true,
)
+
+install_symlink(
+ 'hyprland',
+ install_dir: get_option('bindir'),
+ pointing_to: 'Hyprland',
+)