Skip to content

Commit

Permalink
Merge "CMakeLists.txt: allow CMAKE_INSTALL_RPATH to be set empty" int…
Browse files Browse the repository at this point in the history
…o main
  • Loading branch information
jzern authored and Gerrit Code Review committed Jan 18, 2023
2 parents 31c28db + d9a505f commit b54d21a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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}")
Expand Down

0 comments on commit b54d21a

Please sign in to comment.