Add PICrypt
git-svn-id: svn://db.shs.com.ru/pip@96 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -124,6 +124,17 @@ else ()
|
||||
endif ()
|
||||
|
||||
|
||||
# Check if PIP support cryptographic encryption/decryption by using sodium library
|
||||
if (DEFINED CRYPT)
|
||||
message(STATUS "Building with CRYPT")
|
||||
unset(CRYPT)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPIP_CRYPT")
|
||||
list(APPEND LIBS sodium)
|
||||
else ()
|
||||
message(STATUS "Building without CRYPTH, encryption doesn't work")
|
||||
endif ()
|
||||
|
||||
|
||||
# Add library
|
||||
if (${WIN32})
|
||||
list(APPEND LIBS ws2_32 Iphlpapi Psapi)
|
||||
|
||||
Reference in New Issue
Block a user