From 678ee13cbe22d26e0a248c4576d7764ae0a2c47f Mon Sep 17 00:00:00 2001 From: "sergey.zavarza" Date: Thu, 29 Jul 2021 22:58:20 +0300 Subject: [PATCH] build fix windows + osx --- src/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3b232d4..0e10d01 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -51,6 +51,13 @@ set_target_properties(qhttpengine PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR} ) +if(MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4456") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251") +elseif (APPLE) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-private-field") # 3rdparty/qhttpengine/src/src/range_p.h +endif() + target_include_directories(qhttpengine PUBLIC "$" "$"