modify CMakeList to improve compatibility

This commit is contained in:
sxy 2020-11-26 16:50:00 +08:00
parent eec128886f
commit 2e217e969b

View File

@ -21,6 +21,7 @@ target_link_libraries(${COMPONENT_TARGET} "-L ${CMAKE_CURRENT_SOURCE_DIR}/esp-tt
IF (IDF_VER MATCHES "v4.")
add_prebuilt_library(multinet "${CMAKE_CURRENT_SOURCE_DIR}/lib/libmultinet.a" PRIV_REQUIRES esp-sr)
add_prebuilt_library(esp_audio_processor "${CMAKE_CURRENT_SOURCE_DIR}/acoustic_algorithm/libesp_audio_processor.a" PRIV_REQUIRES esp-sr)
ENDIF (IDF_VER MATCHES "v4.")
if(IDF_TARGET STREQUAL "esp32")
@ -56,4 +57,4 @@ target_link_libraries(${COMPONENT_TARGET} "-Wl,--start-group"
voice_set_xiaole_esp32s2
voice_set_template_esp32s2
"-Wl,--end-group")
endif()
endif()