Skip to content

Instantly share code, notes, and snippets.

@pgorczak
Last active January 28, 2016 17:41
Show Gist options
  • Save pgorczak/e7a23fb799623703282a to your computer and use it in GitHub Desktop.
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.
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