summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2023-09-25 16:05:28 -0600
committerRusty Wagner <rusty.wagner@gmail.com>2023-09-25 16:05:28 -0600
commit923b9a0d185e15fe6aa039cc41773fa9629346d0 (patch)
tree36c66861621254ee5c0b01a99d5d5bb5f55d99e0
parent17c7fd33dc0a3aab1b8b27f5c55a4b94a7c7797f (diff)
Turn off warnings in third party jsoncpp code
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
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})