Skip to content

Commit eaed60a

Browse files
cottsaylaudrup
authored andcommitted
Use CMAKE_INSTALL_LIBDIR in CONF_CMAKE_INSTALL_DIR (mfontanini#472)
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`.
1 parent 89c4e97 commit eaed60a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ ENDIF()
318318
# **********************************
319319

320320
if(UNIX)
321-
set(CONF_CMAKE_INSTALL_DIR lib/cmake/libtins)
321+
set(CONF_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/libtins")
322322
else()
323323
set(CONF_CMAKE_INSTALL_DIR CMake)
324324
endif()

0 commit comments

Comments
 (0)