Skip to content

Commit ba346af

Browse files
authored
Merge pull request #233831 from Homebrew/shamrock-unbundle
shamrock: build with `nlohmann-json` and `pybind11`
2 parents 888a514 + fcb88c4 commit ba346af

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Formula/s/shamrock.rb

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ class Shamrock < Formula
2020
end
2121

2222
depends_on "cmake" => :build
23+
depends_on "fmt" => :build
24+
depends_on "nlohmann-json" => :build
25+
depends_on "pybind11" => :build
2326
depends_on "adaptivecpp"
2427
depends_on "boost"
25-
depends_on "fmt"
2628
depends_on "open-mpi"
2729
depends_on "[email protected]"
2830

@@ -39,13 +41,21 @@ def site_packages(python)
3941
end
4042

4143
def install
44+
rm_r(%w[
45+
external/fmt
46+
external/nlohmann_json
47+
external/pybind11
48+
])
49+
4250
args = %W[
4351
-DSHAMROCK_ENABLE_BACKEND=SYCL
4452
-DPYTHON_EXECUTABLE=#{python}
4553
-DSYCL_IMPLEMENTATION=ACPPDirect
4654
-DCMAKE_CXX_COMPILER=acpp
4755
-DACPP_PATH=#{Formula["adaptivecpp"].opt_prefix}
48-
-DUSE_SYSTEM_FMTLIB=Yes
56+
-DSHAMROCK_EXTERNAL_FMTLIB=ON
57+
-DSHAMROCK_EXTERNAL_JSON=ON
58+
-DSHAMROCK_EXTERNAL_PYBIND11=ON
4959
]
5060

5161
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args

0 commit comments

Comments
 (0)