@ -666,6 +666,13 @@ if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES ) 
		
	
		
			
				        #  w x W i d g e t s  f o u n d .   A t  l e a s t  t h e  m a j o r  a n  m i n o r  v e r s i o n  s h o u l d  m a t c h .         #  w x W i d g e t s  f o u n d .   A t  l e a s t  t h e  m a j o r  a n  m i n o r  v e r s i o n  s h o u l d  m a t c h .  
		
	
		
			
				        set (  _wxpy_version  "${wxWidgets_VERSION_MAJOR}.${wxWidgets_VERSION_MINOR}"  )         set (  _wxpy_version  "${wxWidgets_VERSION_MAJOR}.${wxWidgets_VERSION_MINOR}"  )  
		
	
		
			
				        set (  _py_cmd  "import wxversion;print wxversion.checkInstalled('${_wxpy_version}')"  )         set (  _py_cmd  "import wxversion;print wxversion.checkInstalled('${_wxpy_version}')"  )  
		
	
		
			
				
 
		
	
		
			
				        #  A d d  u s e r  s p e c i f i e d  P y t h o n  s i t e  p a c k a g e  p a t h .  
		
	
		
			
				        if (  PYTHON_SITE_PACKAGE_PATH  )  
		
	
		
			
				            set (  _py_cmd  
		
	
		
			
				                " i m p o r t  s y s ; s y s . p a t h . insert ( 0,  \"${PYTHON_SITE_PACKAGE_PATH}\");${_py_cmd}"  )  
		
	
		
			
				        endif ( )  
		
	
		
			
				
 
		
	
		
			
				        execute_process (  COMMAND  ${ PYTHON_EXECUTABLE }  -c  "${_py_cmd}"         execute_process (  COMMAND  ${ PYTHON_EXECUTABLE }  -c  "${_py_cmd}"  
		
	
		
			
				            R E S U L T _ V A R I A B L E  W X P Y T H O N _ V E R S I O N _ R E S U L T             R E S U L T _ V A R I A B L E  W X P Y T H O N _ V E R S I O N _ R E S U L T  
		
	
		
			
				            O U T P U T _ V A R I A B L E  W X P Y T H O N _ V E R S I O N _ F O U N D             O U T P U T _ V A R I A B L E  W X P Y T H O N _ V E R S I O N _ F O U N D  
		
	
	
		
			
				
					
					
					
						
							 
					
				 
				@ -681,11 +688,12 @@ if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES ) 
		
	
		
			
				        endif ( )         endif ( )  
		
	
		
			
				
 
		
	
		
			
				        if (  NOT  WXPYTHON_VERSION_FOUND  STREQUAL  "True"  )         if (  NOT  WXPYTHON_VERSION_FOUND  STREQUAL  "True"  )  
		
	
		
			
				            message (  FATAL_ERROR  "wxPython version ${_wxpy_version} does not appear to be installed on the system."  )  
		
	
		
			
				        else ( )  
		
	
		
			
				            set (  WXPYTHON_VERSION_FOUND  "${_wxpy_version}"  
		
	
		
			
				                C A C H E  S T R I N G  " w x P y t h o n  v e r s i o n  f o u n d . "  )  
		
	
		
			
				            message (  FATAL_ERROR  
		
	
		
			
				                " w x P y t h o n  v e r s i o n  $ { _ w x p y _ v e r s i o n }  d o e s  n o t  a p p e a r  t o  b e  i n s t a l l e d  o n  t h e  s y s t e m . "  )  
		
	
		
			
				        endif ( )         endif ( )  
		
	
		
			
				
 
		
	
		
			
				        set (  WXPYTHON_VERSION  ${ _wxpy_version }  CACHE  STRING  "wxPython version found."  )  
		
	
		
			
				        message (  STATUS  "wxPython version ${_wxpy_version} found."  )  
		
	
		
			
				    endif ( )     endif ( )  
		
	
		
			
				
 
		
	
		
			
				    # message (  STATUS  "PYTHON_INCLUDE_DIRS:${PYTHON_INCLUDE_DIRS}"  )     # message (  STATUS  "PYTHON_INCLUDE_DIRS:${PYTHON_INCLUDE_DIRS}"  )  
		
	
	
		
			
				
					
						
							 
					
					
						
							 
					
					
				 
				@ -825,6 +833,9 @@ else() 
		
	
		
			
				    message (  STATUS  "WARNING: Doxygen not found - doxygen-docs (Source Docs) target not created"  )     message (  STATUS  "WARNING: Doxygen not found - doxygen-docs (Source Docs) target not created"  )  
		
	
		
			
				endif ( ) endif ( )  
		
	
		
			
				
 
		
	
		
			
				#  G e n e r a t e  c o n f i g . h .  
		
	
		
			
				configure_file (  ${ PROJECT_SOURCE_DIR } /CMakeModules/config.h.cmake  
		
	
		
			
				    $ { C M A K E _ B I N A R Y _ D I R } / c o n f i g . h  )  
		
	
		
			
				
 
		
	
		
			
				# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = # = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
		
	
		
			
				#  " m a k e  u n i n s t a l l "  r u l e s #  " m a k e  u n i n s t a l l "  r u l e s