hyprwm / hyprlang

The official implementation library for the hypr config language.
https://wiki.hyprland.org/Hypr-Ecosystem/hyprlang/
GNU Lesser General Public License v3.0
137 stars 16 forks source link

Fails to install pkg-config file outside of `build` subdirectory #6

Closed jbeich closed 10 months ago

jbeich commented 10 months ago

Downstream packaging may use different build directory than CI, not necessarily under source directory.

$ cmake -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/hyprlang_prefix -B /tmp/hyprlang_build
$ cmake --build /tmp/hyprlang_build 
$ cmake --install /tmp/hyprlang_build
-- Install configuration: ""
-- Installing: /tmp/hyprlang_prefix/lib/libhyprlang.so
-- Installing: /tmp/hyprlang_prefix/include/hyprlang.hpp
-- Up-to-date: /tmp/hyprlang_prefix/lib/libhyprlang.so
-- Up-to-date: /tmp/hyprlang_prefix/include/hyprlang.hpp
CMake Error at /tmp/hyprlang_build/cmake_install.cmake:95 (file):
  file INSTALL cannot find "/tmp/hyprlang/build/hyprlang.pc": No such file or
  directory.