Skip to content

Commit

Permalink
Use CMAKE_INSTALL_LIBDIR in CONF_CMAKE_INSTALL_DIR (mfontanini#472)
Browse files Browse the repository at this point in the history
On some platforms (like RedHat ones), CMAKE_INSTALL_LIBDIR is set to
`lib64` instead of `lib`. The CMake files should also be installed to
`lib64`, but because CONF_CMAKE_INSTALL_DIR is set unconditionally to
use `lib`, the proper path can't be configured.

This change makes CONF_CMAKE_INSTALL_DIR use the configured
CMAKE_INSTALL_LIBDIR value, which defaults to `lib`.
  • Loading branch information
cottsay authored and laudrup committed Nov 23, 2022
1 parent 89c4e97 commit eaed60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ ENDIF()
# **********************************

if(UNIX)
set(CONF_CMAKE_INSTALL_DIR lib/cmake/libtins)
set(CONF_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/libtins")
else()
set(CONF_CMAKE_INSTALL_DIR CMake)
endif()
Expand Down

0 comments on commit eaed60a

Please sign in to comment.