commit | 514079179df9d59f2fb497e1caf5a4e11b50225d | [log] [tgz] |
---|---|---|
author | Jan Tattermusch <jtattermusch@google.com> | Thu Feb 02 20:44:22 2017 +0100 |
committer | Jan Tattermusch <jtattermusch@google.com> | Thu Feb 02 23:51:09 2017 +0100 |
tree | 45201efc0cfe26544691a1639c1f178b10a37642 | |
parent | 48cfe47a6d1ef26030d7e2bb80e33be9fc76f569 [diff] [blame] |
cmake: support static runtime linking
diff --git a/CMakeLists.txt b/CMakeLists.txt index ed7a76e..9b0446a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -90,6 +90,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) if (MSVC) + include(cmake/msvc_static_runtime.cmake) add_definitions(-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS) # needed to compile protobuf add_definitions(/wd4065 /wd4506)