cmark

My personal build of CMark ✏️

Commit
38710f1de71e9bb22b3c602dd05fb558092e1fb1
Parent
1524531c0f0aa529e7ba6096bbeeabee6edd1344
Author
John MacFarlane <jgm@berkeley.edu>
Date

Disable PUBLIC declarations when we're compiling the executable.

Diffstat

1 file changed, 4 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/CMakeLists.txt 4 4 0
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
@@ -57,6 +57,10 @@ include (GenerateExportHeader)
 add_executable(${PROGRAM} ${PROGRAM_SOURCES})
 add_compiler_export_flags()
 
+# Disable the PUBLIC declarations when compiling the executable:
+set_target_properties(${PROGRAM} PROPERTIES
+  COMPILE_FLAGS -DCMARK_STATIC_DEFINE)
+
 set(CMAKE_C_VISIBILITY_PRESET hidden)
 set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
 add_library(${LIBRARY} SHARED ${LIBRARY_SOURCES})