diff --git a/patches/piper_CMakeLists.txt b/patches/piper_CMakeLists.txt index 167c04d..528ddc9 100644 --- a/patches/piper_CMakeLists.txt +++ b/patches/piper_CMakeLists.txt @@ -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)