fix asr cmake (#3071)

pull/3078/head
masimeng1994 2 years ago committed by GitHub
parent f34d4ad4df
commit 704e363a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,6 +19,12 @@ set(FETCHCONTENT_QUIET off)
get_filename_component(fc_patch "fc_patch" REALPATH BASE_DIR "${CMAKE_SOURCE_DIR}") get_filename_component(fc_patch "fc_patch" REALPATH BASE_DIR "${CMAKE_SOURCE_DIR}")
set(FETCHCONTENT_BASE_DIR ${fc_patch}) set(FETCHCONTENT_BASE_DIR ${fc_patch})
# compiler option
# Keep the same with openfst, -fPIC or -fpic
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++14 -pthread -fPIC -O0 -Wall -g -ldl")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} --std=c++14 -pthread -fPIC -O0 -Wall -g -ggdb -ldl")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} --std=c++14 -pthread -fPIC -O3 -Wall -ldl")
set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_FIND_DEBUG_MODE OFF) set(CMAKE_FIND_DEBUG_MODE OFF)
set(PPS_CXX_STANDARD 14) set(PPS_CXX_STANDARD 14)

@ -9,7 +9,7 @@ mkdir -p ${BUILD_DIR}
BUILD_TYPE=Release BUILD_TYPE=Release
#BUILD_TYPE=Debug #BUILD_TYPE=Debug
BUILD_SO=OFF BUILD_SO=OFF
BUILD_ASR=OFF BUILD_ASR=ON
BUILD_CLS=ON BUILD_CLS=ON
BUILD_VAD=ON BUILD_VAD=ON
FASTDEPLOY_INSTALL_DIR="" FASTDEPLOY_INSTALL_DIR=""

Loading…
Cancel
Save