fish-shell/cmake
Jan Palus 0918653510 Handle absolute path in CMAKE_INSTALL_DATADIR
Cmake accepts both absolute and relative paths in CMAKE_INSTALL_DATADIR.
For the latter case CMAKE_INSTALL_PREFIX is being prepended
automatically. %{rel_datadir} is derived from CMAKE_INSTALL_DATADIR
which was assumed to be relative and otherwise causes issues in a .pc
file where prefix is being prepended unconditionally.

Make sure %{rel_datadir} is relative by calculating RELATIVE_PATH from
CMAKE_INSTALL_PREFIX to CMAKE_INSTALL_FULL_DATADIR which is known to be
absolute.

Fixes #8150
2021-07-20 13:43:34 +02:00
..
checks Optimize away a str2wcs_internal check 2020-09-07 18:05:18 -05:00
Benchmark.cmake Use lowercase CMake function names 2020-03-14 16:11:35 -07:00
CheckIncludeFiles.cmake CMake/CheckIncludeFiles: use correct variable name 2021-06-06 18:10:03 +08:00
ConfigureChecks.cmake CMake: bump minimum requirement to 3.5 2021-06-28 23:56:02 +08:00
Docs.cmake cmake: Stop copying css files 2021-03-02 17:04:47 +01:00
gettext.cmake Group certain cmake targets into folders 2021-03-21 13:29:41 -07:00
Install.cmake Handle absolute path in CMAKE_INSTALL_DATADIR 2021-07-20 13:43:34 +02:00
Mac.cmake Suppress linker warnings in Mac debug builds 2020-09-27 11:35:16 -07:00
MacApp.cmake Group certain cmake targets into folders 2021-03-21 13:29:41 -07:00
PCRE2.cmake Add CMake variable FISH_USE_SYSTEM_PCRE2 2020-04-28 18:30:40 -07:00
Tests.cmake Tests: Set $XDG_DATA_DIRS to empty instead of unsetting 2021-05-18 12:24:24 +02:00
Version.cmake Use lowercase CMake function names 2020-03-14 16:11:35 -07:00