diff options
| author | Mike Taves <mwtoews@gmail.com> | 2021-02-26 00:45:42 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-26 00:45:42 +1300 |
| commit | 3d22f6f0a7f3919d7ed6ac4ebb09d233f5fc65c2 (patch) | |
| tree | 2b6d5d873a85a297b206e60aa92ea80e46994118 /test/postinstall/test_pkg-config.sh | |
| parent | 1a518773616fb001483c175e8dfab00c06e83c89 (diff) | |
| download | PROJ-3d22f6f0a7f3919d7ed6ac4ebb09d233f5fc65c2.tar.gz PROJ-3d22f6f0a7f3919d7ed6ac4ebb09d233f5fc65c2.zip | |
CMake: add support for pkg-config (#2547)
Diffstat (limited to 'test/postinstall/test_pkg-config.sh')
| -rwxr-xr-x | test/postinstall/test_pkg-config.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/postinstall/test_pkg-config.sh b/test/postinstall/test_pkg-config.sh index 98c0815e..f9ae36c2 100755 --- a/test/postinstall/test_pkg-config.sh +++ b/test/postinstall/test_pkg-config.sh @@ -47,10 +47,13 @@ ERRORS=0 LDD_OUTPUT=$(ldd ./$PROGRAM | grep proj) LDD_SUBSTR=$LD_LIBRARY_PATH/libproj. +LDD_RPATH_SUBSTR=@rpath/libproj. printf "Testing expected ldd output ... " case "$LDD_OUTPUT" in *$LDD_SUBSTR*) - echo "passed" ;; + echo "passed (using path)" ;; + *$LDD_RPATH_SUBSTR*) + echo "passed (using rpath)" ;; *) ERRORS=$(($ERRORS + 1)) echo "failed: ldd output '$LDD_OUTPUT' does not contain '$LDD_SUBSTR'" ;; |
