Disabled OSX x86 build since we require 10.7 minimum. This takes support back to late 2006 models. Also, Missed CG framework addition.
This commit is contained in:
parent
7514b41966
commit
61e1659b97
|
@ -174,8 +174,8 @@ if(APPLE)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -x none")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -x none")
|
||||||
|
|
||||||
# Identify the target system:
|
# Identify the target system:
|
||||||
# Ask for 32/64-bit fat binary.
|
# Ask for 64-bit binary.
|
||||||
set(TARGET_FLAGS "-arch x86_64 -arch i386")
|
set(TARGET_FLAGS "-arch x86_64")
|
||||||
# Minimum OS X version.
|
# Minimum OS X version.
|
||||||
# This is inserted into the Info.plist as well.
|
# This is inserted into the Info.plist as well.
|
||||||
# Note that the SDK determines the maximum version of which optional
|
# Note that the SDK determines the maximum version of which optional
|
||||||
|
|
|
@ -171,14 +171,6 @@ else()
|
||||||
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in
|
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in
|
||||||
)
|
)
|
||||||
|
|
||||||
# Install Cg framework into application bundle.
|
|
||||||
copy_resolved_framework_into_bundle(
|
|
||||||
# Our framework in "Externals" does not have "Versions/Current/" in
|
|
||||||
# its path; work around the missing directory levels using "././".
|
|
||||||
"${CMAKE_SOURCE_DIR}/Externals/Cg/Cg.framework/././Cg"
|
|
||||||
"${BUNDLE_PATH}/Contents/Frameworks/Cg.framework/././Cg"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Fix up the bundle after it is finished.
|
# Fix up the bundle after it is finished.
|
||||||
# There does not seem to be an easy way to run CMake commands post-build,
|
# There does not seem to be an easy way to run CMake commands post-build,
|
||||||
# so we invoke CMake again on a generated script.
|
# so we invoke CMake again on a generated script.
|
||||||
|
|
Loading…
Reference in New Issue