summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-04-26 14:34:36 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-04-26 14:34:36 -0700
commitbff0466e191b414f81b607dd8ff3e60f04e03d1d (patch)
treeb001fc0899393afa980cc69f56d50483c74be40a /src
parent153149fb94b3dfe63e8960a457311521ecf302c8 (diff)
parent040470aaced3f7f82de713193e48cc1acaab381d (diff)
Merge pull request #29 from nwellnhof/static_library_flags
Compile static library with -DCMARK_STATIC_DEFINE
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 594d76e..ba3e18e 100644
--- 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