diff options
| author | Xiyue Deng | 2013-10-12 04:25:30 -0700 |
|---|---|---|
| committer | Xiyue Deng | 2013-10-27 06:02:01 -0700 |
| commit | a482ac2092caa776417070b7162430c7543b7c02 (patch) | |
| tree | d0e33699111afd096143daaaffc2ac02feb28859 /Library/Formula/open-scene-graph.rb | |
| parent | dfb1b87116f829c36642446a495e7087e5a54001 (diff) | |
| download | homebrew-a482ac2092caa776417070b7162430c7543b7c02.tar.bz2 | |
open-scene-graph: support C++11 mode.
Closes #19999.
Diffstat (limited to 'Library/Formula/open-scene-graph.rb')
| -rw-r--r-- | Library/Formula/open-scene-graph.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/open-scene-graph.rb b/Library/Formula/open-scene-graph.rb index 98f6ccdb6..da306007f 100644 --- a/Library/Formula/open-scene-graph.rb +++ b/Library/Formula/open-scene-graph.rb @@ -8,6 +8,7 @@ class OpenSceneGraph < Formula head 'http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/' option 'docs', 'Build the documentation with Doxygen and Graphviz' + option :cxx11 depends_on 'cmake' => :build depends_on 'pkg-config' => :build @@ -29,6 +30,8 @@ class OpenSceneGraph < Formula end def install + ENV.cxx11 if build.cxx11? + # Turning off FFMPEG takes this change or a dozen "-DFFMPEG_" variables unless build.with? 'ffmpeg' inreplace 'CMakeLists.txt', 'FIND_PACKAGE(FFmpeg)', '#FIND_PACKAGE(FFmpeg)' |
