summaryrefslogtreecommitdiffstats
path: root/src/cmark-2-static-build.patch
blob: 8b04466f47c0f915d9eef968fcd61504a81a9acd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
commit 9ead98df8ae2a64842dd157485b69756b5a32a2c
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Date:   Tue Nov 14 14:42:06 2017 +0100

    Generate export header for static-only build
    
    Fixes issue #247.

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()