Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CMake] Fails to install under non-default prefix #158

Closed
jbeich opened this issue Jan 4, 2024 · 2 comments
Closed

[CMake] Fails to install under non-default prefix #158

jbeich opened this issue Jan 4, 2024 · 2 comments

Comments

@jbeich
Copy link
Contributor

jbeich commented Jan 4, 2024

Regressed by #154 due to using CMAKE_INSTALL_DATAROOTDIR without include(GNUInstallDirs).

$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/tmp/xdg-desktop-portal-hyprland_prefix -B /tmp/xdg-desktop-portal-hyprland_build -G Ninja
$ cmake --build /tmp/xdg-desktop-portal-hyprland_build
$ cmake --install /tmp/xdg-desktop-portal-hyprland_build
-- Install configuration: ""
-- Installing: /tmp/xdg-desktop-portal-hyprland_prefix/bin/hyprland-share-picker
-- Set non-toolchain portion of runtime path of "/tmp/xdg-desktop-portal-hyprland_prefix/bin/hyprland-share-picker" to ""
-- Up-to-date: /tmp/xdg-desktop-portal-hyprland_prefix/bin/hyprland-share-picker
-- Installing: /tmp/xdg-desktop-portal-hyprland_prefix/bin/xdg-desktop-portal-hyprland
-- Set non-toolchain portion of runtime path of "/tmp/xdg-desktop-portal-hyprland_prefix/bin/xdg-desktop-portal-hyprland" to ""
CMake Error at /tmp/xdg-desktop-portal-hyprland_build/cmake_install.cmake:94 (file):
  file cannot create directory: /xdg-desktop-portal/portals.  Maybe need
  administrative privileges.
@fufexan
Copy link
Member

fufexan commented Jan 4, 2024

Fixed in 86a94c3.

@jbeich
Copy link
Contributor Author

jbeich commented Jan 4, 2024

I confirm, installs fine now.

@jbeich jbeich closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants