GTK3: Display a warning and enable wxGraphicsContext

This commit is contained in:
Maciej Suminski 2018-02-07 13:35:31 +01:00
parent 2fad12bda0
commit 4561b2cba9
1 changed files with 7 additions and 0 deletions

View File

@ -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 macros.
include( ${wxWidgets_USE_FILE} ) 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 # Find OpenGL library, required
# #