| --- a/src/CMakeLists.txt |
| +++ b/src/CMakeLists.txt |
| @@ -392,7 +392,7 @@ |
| ## During package installation, install Libssh2Config.cmake |
| install(EXPORT Libssh2Config |
| NAMESPACE Libssh2:: |
| - DESTINATION lib/cmake/libssh2) |
| + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libssh2) |
| |
| ## During build, register directly from build tree |
| # create Libssh2Config.cmake |
| @@ -424,4 +424,4 @@ |
| COMPATIBILITY SameMajorVersion) |
| install( |
| FILES ${CMAKE_CURRENT_BINARY_DIR}/Libssh2ConfigVersion.cmake |
| - DESTINATION lib/cmake/libssh2) |
| + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libssh2) |