commonmark / cmark

CommonMark parsing and rendering library and program in C
Other
1.6k stars 534 forks source link

build: use CMake to propagate `CMARK_STATIC_DEFINE` #496

Closed compnerd closed 7 months ago

compnerd commented 7 months ago

The CMARK_STATIC_DEFINE macro identifies that the library is being linked statically, which is important information for building on Windows. This uses CMake to automatically propagate the necessary definition to the users and the build of the library itself rather than having everyone specify it manually.