mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 22:57:54 +08:00
0fe909718c
* [cryptopp] update to 7.0 * [cryptopp] Fix Linux builds
20 lines
641 B
Diff
20 lines
641 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 8cf9fa2..86a756b 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -336,9 +336,13 @@ 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 "/FIwinapifamily.h")
|
|
endif ()
|
|
|
|
+if(WINDOWS_STORE)
|
|
+ add_definitions(-DCRYPTOPP_DISABLE_NACL=1)
|
|
+endif()
|
|
+
|
|
# Enable PIC for all target machines except 32-bit i386 due to register pressures.
|
|
if (NOT CRYPTOPP_I386)
|
|
SET(CMAKE_POSITION_INDEPENDENT_CODE 1)
|