Fix detection of wxWidgets toolkit
wxWidgets_CONFIG_OPTIONS can be utilised to explicitly select GTK2 or GTK3. It must be evaluated when querying the toolkit to avoid a mismatch between the version actually used and the version KiCad assumes to be used.
This commit is contained in:
parent
d5f81c7255
commit
31f77fc040
|
@ -555,7 +555,7 @@ endif()
|
||||||
# Turn on wxWidgets compatibility mode for some classes
|
# Turn on wxWidgets compatibility mode for some classes
|
||||||
add_definitions( -DWX_COMPATIBILITY )
|
add_definitions( -DWX_COMPATIBILITY )
|
||||||
|
|
||||||
# See line 41 of CMakeModules/FindwxWidgets.cmake
|
# See line 49 of CMakeModules/FindwxWidgets.cmake
|
||||||
set( wxWidgets_CONFIG_OPTIONS ${wxWidgets_CONFIG_OPTIONS} --static=no )
|
set( wxWidgets_CONFIG_OPTIONS ${wxWidgets_CONFIG_OPTIONS} --static=no )
|
||||||
|
|
||||||
find_package( wxWidgets 3.0.0 COMPONENTS gl aui adv html core net base xml stc REQUIRED )
|
find_package( wxWidgets 3.0.0 COMPONENTS gl aui adv html core net base xml stc REQUIRED )
|
||||||
|
@ -564,7 +564,8 @@ find_package( wxWidgets 3.0.0 COMPONENTS gl aui adv html core net base xml stc R
|
||||||
include( ${wxWidgets_USE_FILE} )
|
include( ${wxWidgets_USE_FILE} )
|
||||||
|
|
||||||
# Check the toolkit used to build wxWidgets
|
# Check the toolkit used to build wxWidgets
|
||||||
execute_process( COMMAND sh -c "${wxWidgets_CONFIG_EXECUTABLE} --query-toolkit"
|
execute_process(
|
||||||
|
COMMAND sh -c "${wxWidgets_CONFIG_EXECUTABLE} ${wxWidgets_CONFIG_OPTIONS} --query-toolkit"
|
||||||
RESULT_VARIABLE wxWidgets_TOOLKIT_RESULT
|
RESULT_VARIABLE wxWidgets_TOOLKIT_RESULT
|
||||||
OUTPUT_VARIABLE wxWidgets_TOOLKIT_FOUND
|
OUTPUT_VARIABLE wxWidgets_TOOLKIT_FOUND
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
|
Loading…
Reference in New Issue