mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 00:23:48 +00:00
Move "-arch i386" flag for Apple port in main CMakeLists.txt file.
This commit is contained in:
parent
07fceb15f7
commit
edd0e62241
@ -219,6 +219,19 @@ if(APPLE)
|
|||||||
${AUDIOTOOLBOX_LIBRARY}
|
${AUDIOTOOLBOX_LIBRARY}
|
||||||
${QUICKTIME_LIBRARY}
|
${QUICKTIME_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Hack to deal with Mac OS X 10.6. NSQuickDrawView is not defined by
|
||||||
|
# NSQuickDrawView.h when compiling in 64-bit mode, and 64-bit mode is the
|
||||||
|
# default when compiling on Snow Leopard.
|
||||||
|
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL i386)
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# The Mac port simply uses too many deprecated things.
|
||||||
|
if(COMPILER_GCC)
|
||||||
|
set(WFLAGS "${WFLAGS} -Wno-deprecated-declarations")
|
||||||
|
endif(COMPILER_GCC)
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
@ -207,19 +207,6 @@ endif()
|
|||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(ALLEGRO_MACOSX 1)
|
set(ALLEGRO_MACOSX 1)
|
||||||
set(ALLEGRO_DARWIN 1)
|
set(ALLEGRO_DARWIN 1)
|
||||||
|
|
||||||
# Hack to deal with Mac OS X 10.6. NSQuickDrawView is not defined by
|
|
||||||
# NSQuickDrawView.h when compiling in 64-bit mode, and 64-bit mode is the
|
|
||||||
# default when compiling on Snow Leopard.
|
|
||||||
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL i386)
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386")
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# The Mac port simply uses too many deprecated things.
|
|
||||||
if(COMPILER_GCC)
|
|
||||||
set(WFLAGS "${WFLAGS} -Wno-deprecated-declarations")
|
|
||||||
endif(COMPILER_GCC)
|
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
|
Loading…
Reference in New Issue
Block a user