Skip to content

Commit

Permalink
CMakeLists.txt: TODO CMAKE_INSTALL_LIBDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
DDvO committed Mar 15, 2024
1 parent 1412dea commit 69062eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,14 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
# help CPackDeb please dpkg-shlibdeps
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.20.0")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS
"../lib/${CMAKE_INSTALL_LIBDIR}"
"../lib/${CMAKE_INSTALL_FULL_LIBDIR}")
message (STATUS "CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS ${CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS}")
else()
set(CMAKE_INSTALL_RPATH # must be done before add_executable()
"../lib/${CMAKE_INSTALL_FULL_LIBDIR}")
"../lib/${CMAKE_INSTALL_FULL_LIBDIR}"
"../lib/${CMAKE_INSTALL_LIBDIR}")
message (STATUS "CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_RPATH}")
endif()
endif()

Expand Down

0 comments on commit 69062eb

Please sign in to comment.