File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ option(Protobuf_USE_STATIC_LIBS "Build with a static Protobuf library" OFF)
3131option (LIGHT_TESTS "Use smaller/shorter tests for simple integration testing (e.g. Travis)" OFF )
3232
3333if (WIN32 )
34+ #
35+ # Strip compiler flags which conflict with ones we explicitly set. If we don't
36+ # do this, then we get a warning on every file we compile for the library.
37+ #
38+ string (REPLACE "/EHsc" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} " )
39+ string (REPLACE "/GR" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} " )
40+
41+ #
42+ # Check whether BCrypt can be used with this SDK version
43+ #
3444 cmake_push_check_state()
3545 set (CMAKE_REQUIRED_LIBRARIES bcrypt)
3646 check_symbol_exists(BCryptEncrypt windows.h BCRYPT_AVAILABLE)
You can’t perform that action at this time.
0 commit comments