Skip to content

Commit 9983c87

Browse files
authored
Merge pull request commonmark#249 from nwellnhof/static-only-build
Generate export header for static-only build
2 parents 0378b31 + 9ead98d commit 9983c87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ if (CMARK_STATIC)
115115
VERSION ${PROJECT_VERSION})
116116
endif(MSVC)
117117

118+
if (NOT CMARK_SHARED)
119+
generate_export_header(${STATICLIBRARY}
120+
BASE_NAME ${PROJECT_NAME})
121+
endif()
122+
118123
list(APPEND CMARK_INSTALL ${STATICLIBRARY})
119124
endif()
120125

0 commit comments

Comments
 (0)