diff options
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index cf62ff4..bdcfbb2 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt | |||
@@ -72,6 +72,13 @@ target_include_directories(ssl_obj | |||
72 | ../include | 72 | ../include |
73 | ${CMAKE_BINARY_DIR}/include) | 73 | ${CMAKE_BINARY_DIR}/include) |
74 | 74 | ||
75 | if(MSVC) | ||
76 | # "C4702" - unreachable code | ||
77 | set_source_files_properties(d1_pkt.c s3_cbc.c PROPERTIES | ||
78 | COMPILE_OPTIONS /wd4702 | ||
79 | ) | ||
80 | endif() | ||
81 | |||
75 | add_library(bs_obj OBJECT ${BS_SRC}) | 82 | add_library(bs_obj OBJECT ${BS_SRC}) |
76 | target_include_directories(bs_obj | 83 | target_include_directories(bs_obj |
77 | PRIVATE | 84 | PRIVATE |
@@ -157,4 +164,3 @@ if(BUILD_SHARED_LIBS) | |||
157 | add_library(ssl-static STATIC $<TARGET_OBJECTS:ssl_obj>) | 164 | add_library(ssl-static STATIC $<TARGET_OBJECTS:ssl_obj>) |
158 | target_link_libraries(ssl-static crypto-static ${PLATFORM_LIBS}) | 165 | target_link_libraries(ssl-static crypto-static ${PLATFORM_LIBS}) |
159 | endif() | 166 | endif() |
160 | |||