Remove references to unused define.

This commit is contained in:
arcum42 2022-10-02 05:20:30 -07:00
parent 736b5a2a06
commit 5d3b3319ad
2 changed files with 0 additions and 36 deletions

View File

@ -84,38 +84,6 @@ int main()
} }
") ")
if (NOT PCSX2_CORE)
function(WX_vs_SDL)
file(WRITE "${CMAKE_BINARY_DIR}/wx_sdl.c" "${wx_sdl_c_code}")
enable_language(C)
try_compile(
wx_linked_to_sdl
"${CMAKE_BINARY_DIR}"
"${CMAKE_BINARY_DIR}/wx_sdl.c"
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${wxWidgets_INCLUDE_DIRS}"
LINK_LIBRARIES "${wxWidgets_LIBRARIES}"
COPY_FILE "${CMAKE_BINARY_DIR}/wx_sdl"
)
if (NOT wx_linked_to_sdl)
return()
endif()
execute_process(
COMMAND ldd "${CMAKE_BINARY_DIR}/wx_sdl"
COMMAND grep -c SDL2
OUTPUT_VARIABLE sdl2_count
)
if (SDL2_API AND sdl2_count STREQUAL "0")
message(FATAL_ERROR "wxWidgets is linked to SDL1.2. Please use -DSDL2_API=FALSE.")
elseif (NOT SDL2_API AND NOT sdl2_count STREQUAL "0")
message(FATAL_ERROR "wxWidgets is linked to SDL2. Please use -DSDL2_API=TRUE")
endif()
endfunction()
endif()
function(GCC7_BUG) function(GCC7_BUG)
# try_run doesn't work when cross-compiling is enabled. It is completely silly in our case # try_run doesn't work when cross-compiling is enabled. It is completely silly in our case
# as i386 binaries are 100% fine on x64. # as i386 binaries are 100% fine on x64.

View File

@ -188,10 +188,6 @@ endif()
#---------------------------------------- #----------------------------------------
include(ApiValidation) include(ApiValidation)
if(NOT PCSX2_CORE)
WX_vs_SDL()
endif()
# Blacklist bad GCC # Blacklist bad GCC
if(GCC_VERSION VERSION_EQUAL "7.0" OR GCC_VERSION VERSION_EQUAL "7.1") if(GCC_VERSION VERSION_EQUAL "7.0" OR GCC_VERSION VERSION_EQUAL "7.1")
GCC7_BUG() GCC7_BUG()