From: Vitaly Chikunov Date: Fri, 3 Dec 2021 08:54:40 +0000 (+0300) Subject: MSVC: Undo adding `-Wno-error=deprecated-declarations` X-Git-Tag: v3.0.1~36 X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=openssl-gost%2Fengine.git;a=commitdiff_plain;h=1907d53ddbefbc85ce3bdea8320ff7610f47f22a MSVC: Undo adding `-Wno-error=deprecated-declarations` Since they are now global. Error message: cl : command line error D8021: invalid numeric argument '/Wno-error=deprecated-declarations' Fixes: 5dfb598 ("CMakeLists.txt: Workaround openssl deprecation of HMAC and CMAC primitives") Signed-off-by: Vitaly Chikunov --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a729a20..2616196 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,11 +43,6 @@ if (ASAN) set(SKIP_PERL_TESTS 1) endif() -# DEPRECATEDIN_3_0 CMAC -set_source_files_properties(gost_omac.c PROPERTIES COMPILE_FLAGS -Wno-error=deprecated-declarations) -# DEPRECATEDIN_3_0 HMAC -set_source_files_properties(gost_keyexpimp.c PROPERTIES COMPILE_FLAGS -Wno-error=deprecated-declarations) - set(CMAKE_C_STANDARD 90) CHECK_FUNCTION_EXISTS(clock_gettime HAVE_CLOCK_GETTIME_C) CHECK_LIBRARY_EXISTS(rt clock_gettime "" HAVE_CLOCK_GETTIME_RT)