Skip to content

Commit

Permalink
fix(cmake): libboost Windows XP compatibility fix (#270)
Browse files Browse the repository at this point in the history
Force Boost.Uuid to use obsolete CryptoAPI for Windows XP compatibility,
as the new Cryptography API: Next Generation (CNG) requires minimum
version of Windows Vista.

Fixes rime/weasel#337
  • Loading branch information
Prcuvu committed Apr 29, 2019
1 parent e41bb63 commit fecfe39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ if(MSVC)
# stdint.h is missing from VS2010
include_directories(${PROJECT_SOURCE_DIR}/thirdparty/include/msvc)
endif()
add_definitions("/wd4244 /wd4996")
# Force Boost.Uuid to use wincrypt as random provider instead of bcrypt for Windows XP compatibility
add_definitions("/wd4244 /wd4996 /DBOOST_UUID_RANDOM_PROVIDER_FORCE_WINCRYPT")
endif()

if(UNIX)
Expand Down

0 comments on commit fecfe39

Please sign in to comment.