summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-11-15 09:08:38 -0800
committerGitHub <noreply@github.com>2017-11-15 09:08:38 -0800
commit9983c87a206d11faa7a678ae950028139e83f36b (patch)
tree3218608148b660cd377b560047850951fe0ca33b
parent0378b315751c83690121936771f591612ec4e810 (diff)
parent9ead98df8ae2a64842dd157485b69756b5a32a2c (diff)
Merge pull request #249 from nwellnhof/static-only-build
Generate export header for static-only build
-rw-r--r--src/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d5a1936..995a9df 100644
--- 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()