diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 1f056c9..bc72841 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -7,11 +7,11 @@ find_package(SDL2 QUIET) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) set(ExampleLibs ggml) -if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.3) +if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0) list(APPEND ExampleLibs stdc++fs) endif() if(SDL2_FOUND) - include_directories(${SDL2_INCLUDE_DIRS}) + include_directories(${SDL2_INCLUDE_DIRS}) add_library(streamSDL STATIC common-sdl.h common-sdl.cpp) list(APPEND ExampleLibs ${SDL2_LIBRARIES}) endif() diff --git a/sense-voice/csrc/CMakeLists.txt b/sense-voice/csrc/CMakeLists.txt index 2f48191..00834fe 100644 --- a/sense-voice/csrc/CMakeLists.txt +++ b/sense-voice/csrc/CMakeLists.txt @@ -22,4 +22,4 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU" list(APPEND ExampleLibs stdc++fs) endif() -target_link_libraries(sense-voice-core PRIVATE ${ExampleLibs}) \ No newline at end of file +target_link_libraries(sense-voice-core PRIVATE ${ExampleLibs})