cmark

My personal build of CMark ✏️

Commit
caa81895c8aa8d5e5b6b2c2ecdb84fbad8797692
Parent
a06430102225c2c261f1bbb510cb9720b02d3a84
Author
John MacFarlane <jgm@berkeley.edu>
Date

Use libcmark.a for static library on *nix.

Use cmark_static on Windows as before. See #11.

Diffstat

1 file changed, 10 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified src/CMakeLists.txt 13 10 3
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
@@ -86,9 +86,16 @@ set_target_properties(${LIBRARY} PROPERTIES
   OUTPUT_NAME "cmark"
   SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
   VERSION ${PROJECT_VERSION})
-set_target_properties(${STATICLIBRARY} PROPERTIES
-  OUTPUT_NAME "cmark_static"
-  VERSION ${PROJECT_VERSION})
+
+if (MSVC)
+  set_target_properties(${STATICLIBRARY} PROPERTIES
+    OUTPUT_NAME "cmark_static"
+    VERSION ${PROJECT_VERSION})
+else()
+  set_target_properties(${STATICLIBRARY} PROPERTIES
+    OUTPUT_NAME "cmark"
+    VERSION ${PROJECT_VERSION})
+endif(MSVC)
 
 set_property(TARGET ${LIBRARY}
   APPEND PROPERTY MACOSX_RPATH true)