mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
CMake: remove artisanal wxWidgets version check
This commit is contained in:
parent
dd31a403db
commit
f7892faa80
@ -789,28 +789,12 @@ if(NOT ANDROID)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT DISABLE_WX)
|
if(NOT DISABLE_WX)
|
||||||
find_package(wxWidgets COMPONENTS core aui adv)
|
find_package(wxWidgets 3.1.0 COMPONENTS core aui adv)
|
||||||
|
|
||||||
if(_ARCH_32)
|
if(_ARCH_32)
|
||||||
add_definitions(-DwxSIZE_T_IS_UINT)
|
add_definitions(-DwxSIZE_T_IS_UINT)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(wxWidgets_FOUND)
|
|
||||||
EXECUTE_PROCESS(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
|
||||||
COMMAND sh "${wxWidgets_CONFIG_EXECUTABLE}"
|
|
||||||
${wxWidgets_CONFIG_OPTIONS} --version
|
|
||||||
OUTPUT_VARIABLE wxWidgets_VERSION
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
||||||
ERROR_QUIET
|
|
||||||
)
|
|
||||||
message(STATUS "Found wxWidgets version ${wxWidgets_VERSION}")
|
|
||||||
set(wxMIN_VERSION "3.1.0")
|
|
||||||
if(${wxWidgets_VERSION} VERSION_LESS ${wxMIN_VERSION})
|
|
||||||
message(STATUS "At least ${wxMIN_VERSION} is required; ignoring found version")
|
|
||||||
unset(wxWidgets_FOUND)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE AND NOT HAIKU)
|
if(UNIX AND NOT APPLE AND NOT HAIKU)
|
||||||
# There is a bug in the FindGTK module in cmake version 2.8.2 that
|
# There is a bug in the FindGTK module in cmake version 2.8.2 that
|
||||||
# does not find gdk-pixbuf-2.0. On the other hand some 2.8.3
|
# does not find gdk-pixbuf-2.0. On the other hand some 2.8.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user