diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-04-26 14:34:36 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-04-26 14:34:36 -0700 |
commit | bff0466e191b414f81b607dd8ff3e60f04e03d1d (patch) | |
tree | b001fc0899393afa980cc69f56d50483c74be40a | |
parent | 153149fb94b3dfe63e8960a457311521ecf302c8 (diff) | |
parent | 040470aaced3f7f82de713193e48cc1acaab381d (diff) |
Merge pull request #29 from nwellnhof/static_library_flags
Compile static library with -DCMARK_STATIC_DEFINE
-rw-r--r-- | src/CMakeLists.txt | 3 |
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 |