Ruby: Fix warning about unrecognized option
@@ -29,13 +29,13 @@ if (DEPENDENCY_PHASE)
COMMAND ${SWIG_EXECUTABLE} -c++ -ruby -external-runtime runtime.h)
# we call this SWIG_COMPILE_FLAGS because we have the same variable in our swig bindings
- set (SWIG_COMPILE_FLAGS
- "-Wno-shadow -Wno-old-style-cast -Wno-unused-variable -Wno-unused-parameter -Wno-reserved-user-defined-literal")
+ set (SWIG_COMPILE_FLAGS "-Wno-shadow -Wno-old-style-cast -Wno-unused-variable -Wno-unused-parameter")
# Disable warnings produced by generated code
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-deprecated-register")
set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-macro-redefined")
+ set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-reserved-user-defined-literal")
elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-literal-suffix")
endif ()
