diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2017-11-15 09:08:38 -0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-15 09:08:38 -0800 | 
| commit | 9983c87a206d11faa7a678ae950028139e83f36b (patch) | |
| tree | 3218608148b660cd377b560047850951fe0ca33b /src | |
| parent | 0378b315751c83690121936771f591612ec4e810 (diff) | |
| parent | 9ead98df8ae2a64842dd157485b69756b5a32a2c (diff) | |
Merge pull request #249 from nwellnhof/static-only-build
Generate export header for static-only build
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 5 | 
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()  | 
