Skip to content

Commit

Permalink
Meson: properly install 'hyprland' symlink (#9091)
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan authored Jan 18, 2025
1 parent 078e13f commit d01756c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ executable(
],
install: true,
)

install_symlink(
'hyprland',
install_dir: get_option('bindir'),
pointing_to: 'Hyprland',
)

0 comments on commit d01756c

Please sign in to comment.