cmark

My personal build of CMark ✏️

Commit
bff0466e191b414f81b607dd8ff3e60f04e03d1d
Parent
153149fb94b3dfe63e8960a457311521ecf302c8
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #29 from nwellnhof/static_library_flags

Compile static library with -DCMARK_STATIC_DEFINE

Diffstat

1 file changed, 3 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/CMakeLists.txt 3 3 0
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
@@ -87,6 +87,8 @@ set_target_properties(${LIBRARY} PROPERTIES
   OUTPUT_NAME "cmark"
   SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
   VERSION ${PROJECT_VERSION})
+set_target_properties(${STATICLIBRARY} PROPERTIES
+  COMPILE_FLAGS -DCMARK_STATIC_DEFINE)
 
 if (MSVC)
   set_target_properties(${STATICLIBRARY} PROPERTIES
@@ -109,6 +111,7 @@ if (MSVC)
     APPEND PROPERTY LINK_FLAGS /INCREMENTAL:NO)
 endif(MSVC)
 
+set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
 include (InstallRequiredSystemLibraries)
 install(TARGETS ${PROGRAM} ${LIBRARY}
   RUNTIME DESTINATION bin