GTK3: Display a warning and enable wxGraphicsContext
This commit is contained in:
parent
2fad12bda0
commit
4561b2cba9
|
@ -508,6 +508,13 @@ find_package( wxWidgets 3.0.0 COMPONENTS gl aui adv html core net base xml stc R
|
|||
# Include wxWidgets macros.
|
||||
include( ${wxWidgets_USE_FILE} )
|
||||
|
||||
string( FIND "${wxWidgets_LIBRARIES}" "gtk3" GTK3_DETECTED )
|
||||
if( NOT ${GTK3_DETECTED} EQUAL -1 )
|
||||
message( WARNING "\nwxWidgets library has been built against GTK3, it causes a lot of problems in KiCad" )
|
||||
add_definitions( -DUSE_WX_GRAPHICS_CONTEXT )
|
||||
add_definitions( -DWXGTK3 )
|
||||
endif()
|
||||
|
||||
#
|
||||
# Find OpenGL library, required
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue