cmark

My personal build of CMark ✏️

Commit
c6c5c03a113845af99397d92c95d384db1fe1310
Parent
cc43544dea5c2cebd5f1c6244c68e66fd2e85514
Author
John MacFarlane <jgm@berkeley.edu>
Date

Make sure library is built before man page.

Closes #279.

Diffstat

1 file changed, 3 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified man/CMakeLists.txt 5 3 2
diff --git 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)