diff --git a/games/slade/files/patch-src_CMakeLists.txt b/games/slade/files/patch-src_CMakeLists.txt index aa926d46720c..96a3bab652cb 100644 --- a/games/slade/files/patch-src_CMakeLists.txt +++ b/games/slade/files/patch-src_CMakeLists.txt @@ -1,6 +1,6 @@ ---- src/CMakeLists.txt.orig 2018-11-25 00:21:04 UTC +--- src/CMakeLists.txt.orig 2021-06-01 04:32:31 UTC +++ src/CMakeLists.txt -@@ -16,7 +16,11 @@ unset(WITH_WXPATH CACHE) +@@ -16,7 +16,11 @@ if (UNIX OR MINGW) set( CL_WX_CONFIG wx-config ) if (UNIX OR MINGW) @@ -13,7 +13,7 @@ if (NOT WX_TOOL) message(FATAL_ERROR "\nNo functional wx_config script was found in your PATH.\nIs the wxWidgets development package installed?\nIf you built wxWidgets yourself, you can specify the path to your built wx-config executable via WITH_WXPATH\neg. -DWITH_WXPATH=\"/path/to/wx-config/\"" -@@ -52,7 +54,16 @@ if (WX_GTK3) +@@ -52,7 +56,16 @@ endif (WX_GTK3) set(wxWidgets_CONFIG_OPTIONS --toolkit=gtk3) endif (WX_GTK3) @@ -31,3 +31,14 @@ if (NO_WEBVIEW) SET(WX_LIBS ${WX_LIBS} html) else (NO_WEBVIEW) +@@ -159,8 +172,10 @@ endif(APPLE) + set_source_files_properties(${OSX_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) + endif(APPLE) + ++if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i386") + # enable SSE instructions for dumb library + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_USE_SSE -msse") ++endif() + + if(USE_SANITIZER) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address")