From d9a505ffb6b4c98677ea30803f17cad6ec1395ce Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 17 Jan 2023 18:22:47 -0800 Subject: [PATCH] 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 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")