[CMake] swig - how do I set compile flags on the generated files?

2012-11-27 Thread Miller Henry
Our normal coding standards requires zero warnings with -wall -wextra (gcc/clang), but often the swig generated file has warnings. We don't mind turning these warnings off for the generated file, but we still want to see them for other files in the project. However I'm stumped on how to do t

Re: [CMake] swig - how do I set compile flags on the generated files?

2012-11-27 Thread Nick Overdijk
Aren't you the one generating those names? http://www.swig.org/Doc1.3/Introduction.html#Introduction%5Fbuild%5Fsystem On 2012-28-11, at 01:11:24 , Miller Henry wrote: > Our normal coding standards requires zero warnings with –wall –wextra > (gcc/clang), but often the swig generated file has wa

Re: [CMake] swig - how do I set compile flags on the generated files?

2012-11-27 Thread Nick Overdijk
I had a derp, sorry about that. Obviously you don't, hah. You can put all the swig-generated files in a directory, and then perhaps set the properties with a glob? On 2012-28-11, at 02:22:00 , Nick Overdijk wrote: > Aren't you the one generating those names? > > http://www.swig.org/Doc1.3/Int

Re: [CMake] swig - how do I set compile flags on the generated files?

2012-11-29 Thread felix
you may use set_source_files_properties( ${swig_generated_file_fullname} PROPERTIES COMPILE_FLAGS "-w" ) see cmake --help-module UseSWIG -- View this message in context: http://cmake.3232098.n2.nabble.com/swig-how-do-I-set-compile-flags-on-the-generated-files-tp7582494p