summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-11 10:03:01 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-11 10:03:01 -0800
commitc6c5c03a113845af99397d92c95d384db1fe1310 (patch)
treed332a828f9171f9e8572acb388094180bb4a3ff3 /man
parentcc43544dea5c2cebd5f1c6244c68e66fd2e85514 (diff)
Make sure library is built before man page.
Closes #279.
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)