cmark

Unnamed repository; edit this file 'description' to name the repository.

commit caa81895c8aa8d5e5b6b2c2ecdb84fbad8797692
parent a06430102225c2c261f1bbb510cb9720b02d3a84
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Mon,  9 Mar 2015 21:39:07 -0700

Use libcmark.a for static library on *nix.

Use cmark_static on Windows as before.
See #11.

Diffstat:
Msrc/CMakeLists.txt | 13++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
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)