cmake: turn off unused-but-set-variable when compiling swig generated code