summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
)