summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-01-18 19:10:44 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-01-18 19:10:44 +0000
commitb54d21a01d975c9a5681e8d3db6e0f55265ea5bb (patch)
treeba816159ed8a58ade750d764ecb8ac3771f4926d
parent31c28db53c6fa3be7026212fdd1526280e3f0f52 (diff)
parentd9a505ffb6b4c98677ea30803f17cad6ec1395ce (diff)
downloadlibwebp-b54d21a01d975c9a5681e8d3db6e0f55265ea5bb.tar.gz
Merge "CMakeLists.txt: allow CMAKE_INSTALL_RPATH to be set empty" into main
-rw-r--r--CMakeLists.txt2
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}")