cmark

My personal build of CMark ✏️

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

Small reorganization of man/CMakeLists.txt.

Don't add install targets if on Windows.

Diffstat

1 file changed, 11 insertions, 8 deletions

Status File Name N° Changes Insertions Deletions
Modified man/CMakeLists.txt 19 11 8
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
@@ -1,11 +1,12 @@
-set(PYTHON python)
-set(LIBRARY "libcmark")
-
 if (NOT MSVC)
+  set(PYTHON python)
+  set(LIBRARY "libcmark")
+
   add_custom_target(man ALL
     DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
     DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
     )
+
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
     DEPENDS ${CMAKE_SOURCE_DIR}/src/cmark.h
@@ -14,6 +15,7 @@ if (NOT MSVC)
     ${CMAKE_SOURCE_DIR}/src/cmark.h >
     ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
     )
+
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1
@@ -21,10 +23,10 @@ if (NOT MSVC)
     ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1
     ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
     )
-endif(NOT MSVC)
 
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
-  DESTINATION share/man/man1)
+  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
+    DESTINATION share/man/man1)
 
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
-  DESTINATION share/man/man3)
+  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
+    DESTINATION share/man/man3)
+endif(NOT MSVC)+
\ No newline at end of file