Created
July 15, 2013 05:25
-
-
Save bombilee/5997666 to your computer and use it in GitHub Desktop.
Ogre 1.8.1 patch file from http://www.ogre3d.org/forums/viewtopic.php?f=4&t=73613
modified for to match 1.8.1 https://sourceforge.net/projects/ogre/files/ogre/1.8/1.8.1/ogre_src_v1-8-1.tar.bz2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMake/Templates/OGRE.pc.in b/CMake/Templates/OGRE.pc.in | |
index 15e827f..65a3089 100644 | |
--- a/CMake/Templates/OGRE.pc.in | |
+++ b/CMake/Templates/OGRE.pc.in | |
@@ -8,5 +8,5 @@ Name: OGRE | |
Description: Object-Oriented Graphics Rendering Engine | |
Version: @OGRE_VERSION@ | |
URL: http://www.ogre3d.org | |
-Libs: -L${libdir} -lOgreMain@OGRE_LIB_SUFFIX@ @OGRE_ADDITIONAL_LIBS@ | |
+Libs: -L${libdir} -lOgreMain@OGRE_LIB_SUFFIX@ @OGRE_ADDITIONAL_LIBS@ -F${libdir}/Release -framework Ogre | |
Cflags: -I${includedir} -I${includedir}/OGRE @OGRE_CFLAGS@ | |
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index e290767..36cba1b 100755 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -217,10 +217,11 @@ if (OGRE_BUILD_PLATFORM_APPLE_IOS) | |
include_directories("${OGRE_SOURCE_DIR}/OgreMain/include/iOS") | |
# Set build variables | |
- set(CMAKE_OSX_SYSROOT iphoneos) | |
+ set(XCODE_ATTRIBUTE_SDKROOT iphoneos) | |
+ execute_process(COMMAND xcodebuild -version -sdk "${XCODE_ATTRIBUTE_SDKROOT}" Path | head -n 1 OUTPUT_VARIABLE CMAKE_OSX_SYSROOT) | |
+ string(REGEX REPLACE "(\r?\n)+$" "" CMAKE_OSX_SYSROOT "${CMAKE_OSX_SYSROOT}") | |
set(CMAKE_OSX_DEPLOYMENT_TARGET "") | |
set(CMAKE_EXE_LINKER_FLAGS "-framework Foundation -framework CoreGraphics -framework QuartzCore -framework UIKit") | |
- set(XCODE_ATTRIBUTE_SDKROOT iphoneos) | |
set(XCODE_ATTRIBUTE_GCC_UNROLL_LOOPS "YES") | |
set(XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer") | |
set(XCODE_ATTRIBUTE_GCC_PRECOMPILE_PREFIX_HEADER "YES") | |
@@ -237,9 +238,9 @@ if (OGRE_BUILD_PLATFORM_APPLE_IOS) | |
remove_definitions(-msse) | |
elseif (APPLE AND NOT OGRE_BUILD_PLATFORM_APPLE_IOS) | |
- # Set 10.5 as the base SDK by default | |
set(XCODE_ATTRIBUTE_SDKROOT macosx) | |
- set(CMAKE_OSX_SYSROOT macosx) | |
+ execute_process(COMMAND xcodebuild -version -sdk "${XCODE_ATTRIBUTE_SDKROOT}" Path | head -n 1 OUTPUT_VARIABLE CMAKE_OSX_SYSROOT) | |
+ string(REGEX REPLACE "(\r?\n)+$" "" CMAKE_OSX_SYSROOT "${CMAKE_OSX_SYSROOT}") | |
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5) | |
if (NOT CMAKE_OSX_ARCHITECTURES) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment