Skip to content

Commit 93971f5

Browse files
authored
Add Compiler flag to ignore deprecated OpenSSL declarations (#149)
When compiling against OpenSSL versions => 3.0, the build will error out due to the usage of methods like SHA256_Update, SHA256_Init, etc.. See: https://wiki.openssl.org/index.php/OpenSSL_3.0 While these functions should probably be ported to their new equivalents, this at least allows for the client to be compiled.
1 parent 8b0baf5 commit 93971f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set( CMAKE_INCLUDE_CURRENT_DIR ON )
1515
include_directories( program/src/ )
1616

1717
# gcc compiler/linker flags
18-
add_compile_options( -ggdb -Wall -Wextra -Wsign-conversion -Werror -m64 )
18+
add_compile_options( -ggdb -Wall -Wextra -Wsign-conversion -Werror -Wno-deprecated-declarations -m64 )
1919
set( CMAKE_CXX_FLAGS -std=c++11 )
2020
set( CMAKE_C_FLAGS -std=c99 )
2121
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")

0 commit comments

Comments
 (0)