Skip to content

Commit 53ef64d

Browse files
committed
修复Cmake用Debug模式编译报错的问题。
1 parent 8b3587f commit 53ef64d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ find_package(SDL2 QUIET)
77
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
88

99
set(ExampleLibs ggml)
10-
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.3)
10+
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
1111
list(APPEND ExampleLibs stdc++fs)
1212
endif()
1313
if(SDL2_FOUND)
14-
include_directories(${SDL2_INCLUDE_DIRS})
14+
include_directories(${SDL2_INCLUDE_DIRS})
1515
add_library(streamSDL STATIC common-sdl.h common-sdl.cpp)
1616
list(APPEND ExampleLibs ${SDL2_LIBRARIES})
1717
endif()

sense-voice/csrc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
2222
list(APPEND ExampleLibs stdc++fs)
2323
endif()
2424

25-
target_link_libraries(sense-voice-core PRIVATE ${ExampleLibs})
25+
target_link_libraries(sense-voice-core PRIVATE ${ExampleLibs})

0 commit comments

Comments
 (0)