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:
committed by
Viktor Szakats
parent
0ec6b3e842
commit
dd50a41152
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user