Last active
January 28, 2016 17:41
-
-
Save pgorczak/e7a23fb799623703282a to your computer and use it in GitHub Desktop.
Quick fix for making ogre 1.9 link to libc++ with brew. However, more patching is needed to make pkg-config and the install directories agree.
This file contains hidden or 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 -r 55e89ae88219 CMakeLists.txt | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -326,6 +326,7 @@ | |
# 10.7 is the minimum for libc++ support | |
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7) | |
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") | |
# Make sure that the OpenGL render system is selected for non-iOS Apple builds | |
set(OGRE_BUILD_RENDERSYSTEM_GLES FALSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment