summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
Diffstat (limited to 'man')
-rw-r--r--man/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
index a63421f..9b6956a 100644
--- a/man/CMakeLists.txt
+++ b/man/CMakeLists.txt
@@ -1,4 +1,5 @@
set(PYTHON python)
+set(LIBRARY "libcmark")
if (NOT MSVC)
add_custom_target(man ALL
@@ -8,6 +9,7 @@ if (NOT MSVC)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
DEPENDS ${CMAKE_SOURCE_DIR}/src/cmark.h
+ DEPENDS ${LIBRARY}
COMMAND ${PYTHON} ${CMAKE_CURRENT_SOURCE_DIR}/make_man_page.py
${CMAKE_SOURCE_DIR}/src/cmark.h >
${CMAKE_CURRENT_BINARY_DIR}/cmark.3
@@ -25,4 +27,4 @@ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
DESTINATION share/man/man1)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
- DESTINATION share/man/man3) \ No newline at end of file
+ DESTINATION share/man/man3)