- Commit
- 9983c87a206d11faa7a678ae950028139e83f36b
- Parent
- 0378b315751c83690121936771f591612ec4e810
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Merge pull request #249 from nwellnhof/static-only-build
Generate export header for static-only build
My personal build of CMark ✏️
Merge pull request #249 from nwellnhof/static-only-build
Generate export header for static-only build
1 file changed, 5 insertions, 0 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/CMakeLists.txt | 5 | 5 | 0 |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -115,6 +115,11 @@ if (CMARK_STATIC) VERSION ${PROJECT_VERSION}) endif(MSVC) + if (NOT CMARK_SHARED) + generate_export_header(${STATICLIBRARY} + BASE_NAME ${PROJECT_NAME}) + endif() + list(APPEND CMARK_INSTALL ${STATICLIBRARY}) endif()