1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-10-24 14:53:03 +03:00

cmake: add LIBSSH2_DISABLE_INSTALL option

To disable all installation targets.

Closes #1638
This commit is contained in:
trustytrojan
2025-08-07 08:35:20 -04:00
committed by Viktor Szakats
parent 0ec6b3e842
commit dd50a41152
3 changed files with 229 additions and 222 deletions

View File

@@ -40,5 +40,7 @@ libssh2_transform_makefile_inc("Makefile.am" "${CMAKE_CURRENT_BINARY_DIR}/Makefi
# Get dist_man_MANS variable
include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.am.cmake")
include(GNUInstallDirs)
install(FILES ${dist_man_MANS} DESTINATION "${CMAKE_INSTALL_MANDIR}/man3")
if(NOT LIBSSH2_DISABLE_INSTALL)
include(GNUInstallDirs)
install(FILES ${dist_man_MANS} DESTINATION "${CMAKE_INSTALL_MANDIR}/man3")
endif()