Skip to content

Commit 1d7ab28

Browse files
fix(nemo-speech-cpp): support CMake 4
Homebrew CMake 4 rejects the pinned SentencePiece project because it requests compatibility below version 3.5. Pass the supported policy floor when Darwin runs the upstream helper. Assisted-by: Codex:gpt-5.6 [Codex]
1 parent 597e971 commit 1d7ab28

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

backend/go/nemo-speech-cpp/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ $(SENTENCEPIECE_MARKER): | sources/NeMo-Speech.cpp
284284
# four license installs otherwise unchanged.
285285
ifeq ($(shell uname -s),Darwin)
286286
mkdir -p $(SENTENCEPIECE_PREFIX)/share/licenses/nemo-speech/third_party/sentencepiece
287-
sed -i.bak 's/install -Dm0644/install -m 0644/' sources/NeMo-Speech.cpp/scripts/build_sentencepiece_static.sh
287+
sed -i.bak \
288+
-e 's/install -Dm0644/install -m 0644/' \
289+
-e 's/-DCMAKE_BUILD_TYPE=Release \\/-DCMAKE_BUILD_TYPE=Release -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \\/' \
290+
sources/NeMo-Speech.cpp/scripts/build_sentencepiece_static.sh
288291
endif
289292
cd sources/NeMo-Speech.cpp && JOBS=$(JOBS) scripts/build_sentencepiece_static.sh
290293

0 commit comments

Comments
 (0)