Skip to content

Commit 1a0ad2d

Browse files
committed
removed cryptopp, openssl shall be used instead for blinding (but not implemented yet)
1 parent a5bce23 commit 1a0ad2d

File tree

2 files changed

+231
-232
lines changed

2 files changed

+231
-232
lines changed

CMakeLists.txt

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
cmake_minimum_required(VERSION 3.1.3)
1+
cmake_minimum_required(VERSION 3.15)
22

33
enable_language(C)
44
enable_language(CXX)
55
set(CMAKE_CXX_STANDARD 17)
66

7+
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
78
if(POLICY CMP0077)
89
cmake_policy(SET CMP0077 NEW)
910
endif()
@@ -31,7 +32,7 @@ set(CROW_BUILD_DOCS Off)
3132
# add crow project to the build
3233
FetchContent_Declare(crow
3334
GIT_REPOSITORY https://github.com/CrowCpp/Crow.git
34-
GIT_TAG v1.0+5
35+
GIT_TAG v1.2.0
3536
)
3637

3738
if(NOT crow_POPULATED)
@@ -49,16 +50,16 @@ if(NOT expected_POPULATED)
4950
endif(NOT expected_POPULATED)
5051

5152
# add crypt++ (+cmake) library
52-
set(CRYPTOPP_BUILD_TESTING Off)
53-
set(CRYPTOPP_INSTALL Off)
53+
#set(CRYPTOPP_BUILD_TESTING Off)
54+
#set(CRYPTOPP_INSTALL Off)
5455

55-
if(NOT cryptopp_POPULATED)
56-
FetchContent_Declare(cryptopp
57-
GIT_REPOSITORY https://github.com/abdes/cryptopp-cmake.git
58-
GIT_TAG CRYPTOPP_8_7_0)
59-
FetchContent_Populate(cryptopp)
60-
add_subdirectory(${cryptopp_SOURCE_DIR} ${cryptopp_BINARY_DIR})
61-
endif(NOT cryptopp_POPULATED)
56+
#if(NOT cryptopp_POPULATED)
57+
# FetchContent_Declare(cryptopp
58+
# GIT_REPOSITORY https://github.com/abdes/cryptopp-cmake.git
59+
# GIT_TAG CRYPTOPP_8_7_0_1)
60+
# FetchContent_Populate(cryptopp)
61+
# add_subdirectory(${cryptopp_SOURCE_DIR} ${cryptopp_BINARY_DIR})
62+
#endif(NOT cryptopp_POPULATED)
6263

6364
include(CTest)
6465
enable_testing()
@@ -91,7 +92,7 @@ set(LIB_SOURCES
9192
src/big_int.hpp src/big_int.cpp )
9293

9394
add_library(oc-mint-lib ${LIB_SOURCES})
94-
target_link_libraries(oc-mint-lib PUBLIC Crow::Crow cryptopp::cryptopp)
95+
target_link_libraries(oc-mint-lib PUBLIC Crow::Crow) # cryptopp::cryptopp)
9596
target_include_directories(oc-mint-lib PUBLIC ${expected_SOURCE_DIR}/include src)
9697

9798
add_executable(${PROJECT_NAME} src/main.cpp)

0 commit comments

Comments
 (0)