Keep CMake wxPython behind flags
This commit is contained in:
parent
6b18803221
commit
b374f545be
|
@ -818,11 +818,14 @@ find_package( PythonLibs 3.6 REQUIRED )
|
||||||
# so long as unused search paths are at the end like this.
|
# so long as unused search paths are at the end like this.
|
||||||
set( INC_AFTER ${INC_AFTER} ${PYTHON_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/scripting )
|
set( INC_AFTER ${INC_AFTER} ${PYTHON_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/scripting )
|
||||||
|
|
||||||
# Find the wxPython installation
|
|
||||||
find_package( wxPython REQUIRED )
|
|
||||||
|
|
||||||
if( WXPYTHON_VERSION VERSION_LESS 4.0.0 )
|
if( KICAD_SCRIPTING_WXPYTHON )
|
||||||
|
# Find the wxPython installation
|
||||||
|
find_package( wxPython REQUIRED )
|
||||||
|
|
||||||
|
if( WXPYTHON_VERSION VERSION_LESS 4.0.0 )
|
||||||
message( FATAL_ERROR "wxPython Phoenix is required" )
|
message( FATAL_ERROR "wxPython Phoenix is required" )
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# GTK3 is required on Linux
|
# GTK3 is required on Linux
|
||||||
|
|
Loading…
Reference in New Issue