diff --git a/plugins/Rembed/CMakeLists.txt b/plugins/Rembed/CMakeLists.txt index 9b44e07f777..03f0c2a9f8b 100644 --- a/plugins/Rembed/CMakeLists.txt +++ b/plugins/Rembed/CMakeLists.txt @@ -43,9 +43,9 @@ if(REMBED) ./../../system/mp ./../../system/jlib) - set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wno-error=format-nonliteral") - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=format-nonliteral") - set_property (SOURCE Rembed.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-format-nonliteral") + set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wno-error=format-nonliteral -Wno-error=format-security -Wno-error=format=") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=format-nonliteral -Wno-error=format-security -Wno-error=format=") + set_property (SOURCE Rembed.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-format-nonliteral -Wno-format-security -Wno-error-format=") add_definitions(-D_USRDLL -DREMBED_EXPORTS) if(RCPP_LIBRARY STREQUAL "") add_definitions(-DRCPP_HEADER_ONLY) @@ -77,4 +77,4 @@ if(PLATFORM OR CLIENTTOOLS_ONLY) FILES ${CMAKE_CURRENT_SOURCE_DIR}/R.ecllib DESTINATION plugins COMPONENT Runtime) -endif() +endif() \ No newline at end of file