summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2020-06-09 21:19:25 +0000
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-06-10 13:03:45 +0900
commit399b515c4522ef9dd2ed43bfa3914f77b697f281 (patch)
tree1ffc47836d8c10555217b684f2ce0def4e650226 /man
parent35aea7cd0c76339f4c8a55805c8ead46e72280b2 (diff)
downloadlibr-399b515c4522ef9dd2ed43bfa3914f77b697f281.tar.gz
libr-399b515c4522ef9dd2ed43bfa3914f77b697f281.zip
Amend man/CMakeLists.txt to prevent writes to the man3 source directory
This resolves bug 3122. Signed-off-by: aneejit1 <aneejit1@gmail.com>
Diffstat (limited to 'man')
-rw-r--r--man/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
index 599ee96..589da60 100644
--- a/man/CMakeLists.txt
+++ b/man/CMakeLists.txt
@@ -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(
- OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/man3
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/man3
COMMAND doxygen ../doc/libr.cfg
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generate manpages"
)
install(
- DIRECTORY man3
+ DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man3
DESTINATION ${MAN_INSTALL_DIR}
PATTERN "_*" EXCLUDE
)