2018-10-18 02:51:09 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-03-04 04:29:38 +08:00
|
|
|
index fb43b95..c39e470 100644
|
2018-10-18 02:51:09 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-03-04 04:29:38 +08:00
|
|
|
@@ -451,6 +451,10 @@ if (MSVC)
|
|
|
|
endif()
|
2018-10-18 02:51:09 +08:00
|
|
|
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)
|
2022-03-04 04:29:38 +08:00
|
|
|
@@ -1022,10 +1026,10 @@ endif ()
|
|
|
|
# add_compile_definitions added in CMake 3.12
|
|
|
|
if (${CMAKE_VERSION} VERSION_LESS "3.12")
|
|
|
|
# https://stackoverflow.com/q/61250087
|
|
|
|
- add_definitions("${CMAKE_CPP_FLAGS}" "${CMAKE_CXX_FLAGS}" "${CRYPTOPP_COMPILE_DEFINITIONS}" "${CRYPTOPP_COMPILE_OPTIONS}")
|
|
|
|
+ add_definitions(${CMAKE_CPP_FLAGS} ${CRYPTOPP_COMPILE_DEFINITIONS} ${CRYPTOPP_COMPILE_OPTIONS})
|
|
|
|
else()
|
|
|
|
- add_compile_definitions("${CMAKE_CPP_FLAGS}" "${CRYPTOPP_COMPILE_DEFINITIONS}")
|
|
|
|
- add_compile_options("${CMAKE_CXX_FLAGS}" "${CRYPTOPP_COMPILE_OPTIONS}")
|
|
|
|
+ add_compile_definitions(${CRYPTOPP_COMPILE_DEFINITIONS})
|
|
|
|
+ add_compile_options(${CMAKE_CPP_FLAGS} ${CRYPTOPP_COMPILE_OPTIONS})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
#============================================================================
|