title: How to force CMAKE in building SWIG module in release mode
body: <p>Is there a way to forcefully set the release mode of swig modules in cmake to build in release mode no matter what the actual build type is?</p>
  
  <p>I am trying to build a python module using swig autogenerated code, and it complains of a python debug library when I build my application in debug mode.</p>
  
  <p>I am not interested in debugging python module related code, so I am fine with not building the swig autogenerated python modules in debug mode.</p>
  
  <p>Here is what I have in my cmakelists.txt file:</p>
  
  <pre><code>set_source_files_properties(abstract.i PROPERTIES CPLUSPLUS on)
  swig_add_module(${PROJECT_NAME} python abstract.i)
  swig_link_libraries(${PROJECT_NAME} ${PROJECT_NAME} ${PYTHON_LIBRARIES})
  </code></pre>