mirror of
https://github.com/glfw/glfw.git
synced 2024-11-23 02:25:10 +00:00
Removed extra warning flags for Universal build.
This commit is contained in:
parent
9433ba94a5
commit
0dac7131c8
@ -112,12 +112,12 @@ if (UNIX AND APPLE)
|
|||||||
|
|
||||||
option(GLFW_BUILD_UNIVERSAL "Build the GLFW library and examples as Universal Binaries" FALSE)
|
option(GLFW_BUILD_UNIVERSAL "Build the GLFW library and examples as Universal Binaries" FALSE)
|
||||||
|
|
||||||
# Universal build, decent set of warning flags...
|
# Universal build
|
||||||
if (GLFW_BUILD_UNIVERSAL)
|
if (GLFW_BUILD_UNIVERSAL)
|
||||||
message(STATUS "Building GLFW as Universal Binaries")
|
message(STATUS "Building GLFW as Universal Binaries")
|
||||||
set(CMAKE_OSX_ARCHITECTURES ppc;i386;ppc64;x86_64)
|
set(CMAKE_OSX_ARCHITECTURES ppc;i386;ppc64;x86_64)
|
||||||
set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk)
|
set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk)
|
||||||
set(CMAKE_C_FLAGS "-mmacosx-version-min=10.5 -Wall -Wextra -Wno-unused-parameter -Werror")
|
set(CMAKE_C_FLAGS "-mmacosx-version-min=10.5")
|
||||||
else(GLFW_BUILD_UNIVERSAL)
|
else(GLFW_BUILD_UNIVERSAL)
|
||||||
message(STATUS "Building GLFW only for the native architecture")
|
message(STATUS "Building GLFW only for the native architecture")
|
||||||
endif(GLFW_BUILD_UNIVERSAL)
|
endif(GLFW_BUILD_UNIVERSAL)
|
||||||
|
Loading…
Reference in New Issue
Block a user