Skip to content

Commit

Permalink
Use libcmark.a for static library on *nix.
Browse files Browse the repository at this point in the history
Use cmark_static on Windows as before.
See #11.
  • Loading branch information
jgm committed Mar 10, 2015
1 parent a064301 commit caa8189
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit caa8189

Please sign in to comment.