|
|
@ -30,7 +30,7 @@ if(TARGET gflags) |
|
|
|
set_target_properties(gflags PROPERTIES INTERFACE_COMPILE_OPTIONS "-fPIC") |
|
|
|
endif() |
|
|
|
set(WITH_GFLAGS OFF CACHE BOOL "whether build glog with gflags" FORCE) |
|
|
|
find_package(glog) |
|
|
|
include(cmake-local/glog.cmake) |
|
|
|
# 下面这堆关键字是防止cmake出一堆无关的提示 |
|
|
|
if(NOT GRAPH_TOOLS) |
|
|
|
set(HAVE_BIN OFF CACHE BOOL "Build the fst binaries" FORCE) |
|
|
@ -54,7 +54,7 @@ FetchContent_MakeAvailable(openfst) |
|
|
|
include_directories(${LIB_BASE_DIR}/openfst-src/src/include) |
|
|
|
message(STATUS "${BoldGreen}openfst_BINARY_DIR: ${openfst_BINARY_DIR}${ColourReset}") |
|
|
|
|
|
|
|
add_dependencies(fst gflags_nothreads_static glog::glog) |
|
|
|
add_dependencies(fst gflags glog) |
|
|
|
target_link_libraries(fst PUBLIC gflags_nothreads_static glog) |
|
|
|
|
|
|
|
list(APPEND third_party_libraries fst) |