1- cmake_minimum_required (VERSION 3.1.3 )
1+ cmake_minimum_required (VERSION 3.15 )
22
33enable_language (C)
44enable_language (CXX)
55set (CMAKE_CXX_STANDARD 17)
66
7+ set (CMAKE_POLICY_DEFAULT_CMP0077 NEW)
78if (POLICY CMP0077)
89 cmake_policy (SET CMP0077 NEW)
910endif ()
@@ -31,7 +32,7 @@ set(CROW_BUILD_DOCS Off)
3132# add crow project to the build
3233FetchContent_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
3738if (NOT crow_POPULATED)
@@ -49,16 +50,16 @@ if(NOT expected_POPULATED)
4950endif (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
6364include (CTest)
6465enable_testing ()
@@ -91,7 +92,7 @@ set(LIB_SOURCES
9192 src/big_int.hpp src/big_int.cpp )
9293
9394add_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)
9596target_include_directories (oc-mint-lib PUBLIC ${expected_SOURCE_DIR} /include src)
9697
9798add_executable (${PROJECT_NAME} src/main.cpp)
0 commit comments