Fix CryptoPP build on Windows

This commit is contained in:
Sebastian Messmer 2019-01-19 13:01:43 -08:00
parent 30f8d02081
commit 7adbe4e3ca
2 changed files with 2 additions and 1 deletions

1
vendor/README vendored
View File

@ -4,3 +4,4 @@ googletest: https://github.com/google/googletest/tree/4e4df226fc197c0dda6e37f5c8
spdlog: https://github.com/gabime/spdlog/tree/v0.16.3/include/spdlog
cryptopp: https://github.com/weidai11/cryptopp/tree/CRYPTOPP_8_0_0
- changed: added CMakeLists.txt and cryptopp-config.cmake from https://github.com/noloader/cryptopp-cmake/tree/CRYPTOPP_8_0_0
- changed: commented out line including winapifamily.h in CMakeLists.txt

View File

@ -447,7 +447,7 @@ if (MSVC)
if (CMAKE_SYSTEM_VERSION MATCHES "10\\.0.*")
list(APPEND CRYPTOPP_COMPILE_DEFINITIONS "_WIN32_WINNT=0x0A00")
endif ()
list(APPEND CRYPTOPP_COMPILE_OPTIONS "/FI\"winapifamily.h\"")
#list(APPEND CRYPTOPP_COMPILE_OPTIONS "/FI\"winapifamily.h\"")
endif ()
# Enable PIC for all target machines except 32-bit i386 due to register pressures.