mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
games/slade: only enable SSE on i386 to fix other architectures
cc: error: unsupported option '-msse' for target 'powerpc-unknown-freebsd14.1'
This commit is contained in:
parent
296cae89fb
commit
d0b16b90db
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user