Update piper_CMakeLists.txt

This commit is contained in:
Robert Dunmire III
2025-01-12 11:38:42 -05:00
parent 2909c32935
commit b72a54e6e9
+2 -2
View File
@@ -60,12 +60,12 @@ endif()
if(NOT DEFINED PIPER_PHONEMIZE_DIR)
set(PIPER_PHONEMIZE_DIR "${CMAKE_CURRENT_BINARY_DIR}/pi")
set(ONNXRUNTIME_VERSION "${ONNXRUNTIME_VERSION}")
set(ONNXRUNTIME_VERSION "$ENV{ONNXRUNTIME_VERSION}")
ExternalProject_Add(
piper_phonemize_external
PREFIX "${CMAKE_CURRENT_BINARY_DIR}/p"
URL "https://github.com/rhasspy/piper-phonemize/archive/refs/heads/master.zip"
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${PIPER_PHONEMIZE_DIR}:ONNXRUNTIME_VERSION=${ONNXRUNTIME_VERSION}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${PIPER_PHONEMIZE_DIR}
)
add_dependencies(piper piper_phonemize_external)
add_dependencies(test_piper piper_phonemize_external)