diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-03-09 21:39:07 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-03-09 21:39:07 -0700 |
commit | caa81895c8aa8d5e5b6b2c2ecdb84fbad8797692 (patch) | |
tree | afdc8ba0f5db8e2a1c2429aa0d8eb355232968bc /src | |
parent | a06430102225c2c261f1bbb510cb9720b02d3a84 (diff) |
Use libcmark.a for static library on *nix.
Use cmark_static on Windows as before.
See #11.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d6b28c9..d515ff3 100644 --- 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) |