From 923b9a0d185e15fe6aa039cc41773fa9629346d0 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 25 Sep 2023 16:05:28 -0600 Subject: Turn off warnings in third party jsoncpp code --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fe70f98..8d918a23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,13 @@ endif() file(GLOB BN_API_SOURCES CONFIGURE_DEPENDS *.cpp *.h json/json.h json/json-forwards.h) if(NOT DEMO) list(APPEND BN_API_SOURCES json/jsoncpp.cpp) + if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + set_source_files_properties(json/jsoncpp.cpp PROPERTIES COMPILE_FLAGS /w) + elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set_source_files_properties(json/jsoncpp.cpp PROPERTIES COMPILE_FLAGS -Wno-everything) + elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + set_source_files_properties(json/jsoncpp.cpp PROPERTIES COMPILE_FLAGS -w) + endif() endif() add_library(binaryninjaapi STATIC ${BN_API_SOURCES}) -- cgit v1.3.1