Skip to content

Commit 5516433

Browse files
committed
chore: remove useless cmake in openfst
1 parent 21c8375 commit 5516433

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

runtime/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
2626
endif()
2727

2828
include(openfst)
29+
include(glog)
2930
include_directories(${PROJECT_SOURCE_DIR})
3031

3132
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")

runtime/cmake/openfst.cmake

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
if(NOT ANDROID)
2-
include(gflags)
3-
# We can't build glog with gflags, unless gflags is pre-installed.
4-
# If build glog with pre-installed gflags, there will be conflict.
5-
set(WITH_GFLAGS OFF CACHE BOOL "whether build glog with gflags" FORCE)
6-
include(glog)
7-
81
set(HAVE_BIN OFF CACHE BOOL "Build the fst binaries" FORCE)
92
set(HAVE_SCRIPT OFF CACHE BOOL "Build the fstscript" FORCE)
103
set(HAVE_COMPACT OFF CACHE BOOL "Build compact" FORCE)
@@ -32,9 +25,3 @@ if(NOT ANDROID)
3225
)
3326
FetchContent_MakeAvailable(openfst)
3427
include_directories(${openfst_SOURCE_DIR}/src/include)
35-
else()
36-
set(openfst_BINARY_DIR ${build_DIR}/wenet-openfst-android-1.0.2.aar/jni)
37-
include_directories(${openfst_BINARY_DIR}/include)
38-
link_directories(${openfst_BINARY_DIR}/${ANDROID_ABI})
39-
link_libraries(log glog fst gflags_nothreads)
40-
endif()

0 commit comments

Comments
 (0)