From 59f4b332586d51bd9c99e6a683e70a5eb41a479a Mon Sep 17 00:00:00 2001 From: xyz1001 Date: Wed, 14 Dec 2022 11:37:24 +0800 Subject: [PATCH] fix libressl build error with Visual Studio 2022 --- recipes/libressl/all/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/libressl/all/CMakeLists.txt b/recipes/libressl/all/CMakeLists.txt index 1848ca5a77c35..de350ebd519a2 100644 --- a/recipes/libressl/all/CMakeLists.txt +++ b/recipes/libressl/all/CMakeLists.txt @@ -4,4 +4,7 @@ project(cmake_wrapper) include(conanbuildinfo.cmake) conan_basic_setup() +if(MSVC) + add_definitions(/D_CRT_SUPPRESS_RESTRICT) +endif() add_subdirectory("source_subfolder")