diff options
author | James Zern <jzern@google.com> | 2023-01-17 18:22:47 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2023-01-17 18:22:47 -0800 |
commit | d9a505ffb6b4c98677ea30803f17cad6ec1395ce (patch) | |
tree | 85fc8d63a21979a2d2963442a9cf3c4c6317c00d | |
parent | bdf33d03b0b2a6c707583e33d0bd7a98495f4928 (diff) | |
download | libwebp-d9a505ffb6b4c98677ea30803f17cad6ec1395ce.tar.gz |
CMakeLists.txt: allow CMAKE_INSTALL_RPATH to be set empty
this allows the user to override the default non-empty value added in:
b4994eaa CMake: set rpath for shared objects
Bug: webp:592
Change-Id: I069dcbcd8c2f1e8654d9bc98149139f398ac2c93
Fixed: webp:592
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a5af428..f378db5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ endif() include(cmake/deps.cmake) include(GNUInstallDirs) -if(BUILD_SHARED_LIBS AND NOT CMAKE_INSTALL_RPATH) +if(BUILD_SHARED_LIBS AND NOT DEFINED CMAKE_INSTALL_RPATH) # Set the rpath to match autoconf/libtool behavior. Note this must be set # before target creation. set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") |