diff options
| author | Steven Peters | 2013-10-01 12:13:58 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-01 21:17:34 -0700 |
| commit | 4e6d318bfacdc4543ceeeaf1d774c30fa04c9543 (patch) | |
| tree | 3a2fb567f61702ed66375ad1d623d7dad5104a25 /Library | |
| parent | d6c119363f09fb3d3ab86563c2d2c5ba6d4853f4 (diff) | |
| download | homebrew-4e6d318bfacdc4543ceeeaf1d774c30fa04c9543.tar.bz2 | |
bullet: add option for double precision
By default, bullet uses single precision floating point
variables. The cmake argument -DUSE_DOUBLE_PRECISION=ON
will enable double precision floating point variables.
Closes #22972.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/bullet.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Formula/bullet.rb b/Library/Formula/bullet.rb index c688850c2..026d80b29 100644 --- a/Library/Formula/bullet.rb +++ b/Library/Formula/bullet.rb @@ -10,10 +10,11 @@ class Bullet < Formula depends_on 'cmake' => :build option :universal - option 'framework', 'Build Frameworks' - option 'shared', 'Build shared libraries' - option 'build-demo', 'Build demo applications' - option 'build-extra', 'Build extra library' + option 'framework', 'Build Frameworks' + option 'shared', 'Build shared libraries' + option 'build-demo', 'Build demo applications' + option 'build-extra', 'Build extra library' + option 'double-precision', 'Use double precision' def install args = [] @@ -31,6 +32,7 @@ class Bullet < Formula args << "-DBUILD_DEMOS=OFF" if not build.include? "build-demo" args << "-DBUILD_EXTRAS=OFF" if not build.include? "build-extra" args << "-DINSTALL_EXTRA_LIBS=ON" if build.include? "build-extra" + args << "-DUSE_DOUBLE_PRECISION=ON" if build.include? "double-precision" system "cmake", *args system "make" |
