summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-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})