pull/424/merge
0x914409F1 2017-06-08 14:21:05 +00:00 committed by GitHub
commit 56c8a2f3ff
1 changed files with 7 additions and 0 deletions

View File

@ -295,6 +295,7 @@ list(REMOVE_ITEM cryptopp_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/integer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/pch.cpp
${CMAKE_CURRENT_SOURCE_DIR}/simple.cpp
${CMAKE_CURRENT_SOURCE_DIR}/rdrand.cpp
${CMAKE_CURRENT_SOURCE_DIR}/winpipes.cpp
${CMAKE_CURRENT_SOURCE_DIR}/cryptlib_bds.cpp
${cryptopp_SOURCES_TEST}
@ -306,6 +307,12 @@ set(cryptopp_SOURCES
${cryptopp_SOURCES}
)
string(REGEX MATCH "i.86|x86|i86|_64|d64" PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})
if (NOT "${PROCESSOR}" STREQUAL "")
list(APPEND cryptopp_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/rdrand.cpp)
endif()
if(MINGW OR WIN32)
list(APPEND cryptopp_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/winpipes.cpp)
endif()