Amend man/CMakeLists.txt to prevent writes to the man3 source directory

This resolves bug 3122.

Signed-off-by: aneejit1 <aneejit1@gmail.com>
pull/3/head
aneejit1 4 years ago committed by Michele Calgaro
parent 35aea7cd0c
commit 399b515c45
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -9,18 +9,19 @@
# #
################################################# #################################################
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man3)
add_custom_target( man ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/man3 ) add_custom_target( man ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/man3 )
add_custom_command( add_custom_command(
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/man3 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/man3
COMMAND doxygen ../doc/libr.cfg COMMAND doxygen ../doc/libr.cfg
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generate manpages" COMMENT "Generate manpages"
) )
install( install(
DIRECTORY man3 DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man3
DESTINATION ${MAN_INSTALL_DIR} DESTINATION ${MAN_INSTALL_DIR}
PATTERN "_*" EXCLUDE PATTERN "_*" EXCLUDE
) )

Loading…
Cancel
Save