termux_step_configure_cmake: fix CMAKE_INSTALL_LIBDIR var

CMake docs [1] show that the variable should be a path relative to
prefix, not an absolute path.

[1] https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
Fixes: 9155acd040 ("termux_step_configure_cmake: set CMAKE_INSTALL_LIBDIR")
Fixes: https://github.com/termux/termux-packages/issues/10068
This commit is contained in:
Henrik Grimler 2022-04-19 14:44:56 +02:00
parent f8e833c90b
commit 2af00064dd
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ termux_step_configure_cmake() {
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-DCMAKE_INSTALL_PREFIX=$TERMUX_PREFIX \
-DCMAKE_INSTALL_LIBDIR=$TERMUX_PREFIX/lib \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_MAKE_PROGRAM=$MAKE_PROGRAM_PATH \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DCMAKE_USE_SYSTEM_LIBRARIES=True \