mirror of
https://github.com/pstrueb/piper.git
synced 2026-05-01 12:08:01 +00:00
Fix compilation and runtime for M1 Mac
This commit is contained in:
@@ -31,10 +31,13 @@ set(ONNXRUNTIME_ROOTDIR ${CMAKE_CURRENT_LIST_DIR}/../../lib/${CMAKE_HOST_SYSTEM_
|
||||
target_link_libraries(piper
|
||||
onnxruntime
|
||||
pthread
|
||||
-static-libgcc -static-libstdc++
|
||||
${ESPEAK_NG_LIBRARIES}
|
||||
${PCAUDIO_LIBRARIES})
|
||||
|
||||
if(NOT APPLE)
|
||||
target_link_libraries(-static-libgcc -static-libstdc++)
|
||||
endif()
|
||||
|
||||
target_link_directories(piper PUBLIC
|
||||
${ESPEAK_NG_LIBRARY_DIRS}
|
||||
${ONNXRUNTIME_ROOTDIR}/lib)
|
||||
|
||||
Reference in New Issue
Block a user