tbb: add cmake config file

Closes #27116.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Henry Fredrick Schreiner 2018-04-26 00:33:57 -04:00 committed by FX Coudert
parent 46d264735a
commit 1bc35c4b62

View file

@ -17,6 +17,7 @@ class Tbb < Formula
depends_on :macos => :lion
depends_on "python@2"
depends_on "swig" => :build
depends_on "cmake" => :build
def install
compiler = (ENV.compiler == :clang) ? "clang" : "gcc"
@ -30,6 +31,13 @@ class Tbb < Formula
ENV["TBBROOT"] = prefix
system "python", *Language::Python.setup_install_args(prefix)
end
system "cmake", "-DTBB_ROOT=#{prefix}",
"-DTBB_OS=Darwin",
"-DSAVE_TO=lib/cmake/TBB",
"-P", "cmake/tbb_config_generator.cmake"
(lib/"cmake"/"TBB").install Dir["lib/cmake/TBB/*.cmake"]
end
test do