summaryrefslogtreecommitdiffstats
path: root/README-maintainer
diff options
context:
space:
mode:
Diffstat (limited to 'README-maintainer')
-rw-r--r--README-maintainer13
1 files changed, 9 insertions, 4 deletions
diff --git a/README-maintainer b/README-maintainer
index e7f525d9..166b1744 100644
--- a/README-maintainer
+++ b/README-maintainer
@@ -382,11 +382,16 @@ pytest -n auto
* Run package tests:
-cmake -S . -B build.tmp -DCMAKE_BUILD_TYPE=RelWithDebInfo
+(Note: can't use DESTDIR because pkg-config won't know about it.)
+
+\rm -rf /tmp/inst build.tmp
+cmake -S . -B build.tmp \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/tmp/inst
cmake --build build.tmp -j$(nproc)
-DESTDIR=/tmp/inst cmake --install build.tmp
-env PKG_CONFIG_PATH=/tmp/inst/usr/local/lib/pkgconfig \
- CMAKE_PREFIX_PATH=/tmp/inst/usr/local \
+cmake --install build.tmp
+env PKG_CONFIG_PATH=/tmp/inst/lib/pkgconfig \
+ LD_LIBRARY_PATH=/tmp/inst/lib \
+ CMAKE_PREFIX_PATH=/tmp/inst \
./pkg-test/run-all