diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2014-08-18 19:23:06 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-08-18 19:23:06 -0700 |
commit | 84ce73af3dca41b8acec6d59fca65901e1fe0045 (patch) | |
tree | 1eef49b8b19baaa7a5a584ca703ed695ea05ba52 | |
parent | 8fdd8f86e914e5b4cd50607664c86f72e35413b1 (diff) |
cmake: turn off unused-but-set-variable when compiling swig generated code
-rw-r--r-- | cmake/Modules/UseSWIG.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/Modules/UseSWIG.cmake b/cmake/Modules/UseSWIG.cmake index 9dd1c3c2e9..008bfa0ed5 100644 --- a/cmake/Modules/UseSWIG.cmake +++ b/cmake/Modules/UseSWIG.cmake @@ -145,6 +145,11 @@ macro(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile) "${swig_generated_file_fullname}.c") endif() + # Shut up some warnings from poor SWIG code generation that we + # can do nothing about. + set_source_files_properties( ${swig_generated_file_fullname} + PROPERTIES COMPILE_FLAGS "-Wno-unused-but-set-variable") + #message("Full path to source file: ${swig_source_file_fullname}") #message("Full path to the output file: ${swig_generated_file_fullname}") get_directory_property(cmake_include_directories INCLUDE_DIRECTORIES) |