vcpkg/ports/cryptopp/cmake.patch
Koby Kahane 0fe909718c [cryptopp] update to 7.0 (#4346)
* [cryptopp] update to 7.0

* [cryptopp] Fix Linux builds
2018-10-17 11:51:09 -07:00

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)