Skip to content

Commit 28e2bed

Browse files
authored
[build] Fix bugs in CMake build (kaldi-asr#4044)
1 parent 3b68c30 commit 28e2bed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ if(${KALDI_USE_PATCH_NUMBER})
159159
endif()
160160

161161
get_third_party(openfst)
162-
set(OPENFST_ROOT_DIR ${CMAKE_CURRENT_BINARY_DIR}/openfst)
162+
set(OPENFST_ROOT_DIR ${CMAKE_BINARY_DIR}/openfst)
163163
include(third_party/openfst_lib_target)
164164
link_libraries(fst)
165165

cmake/VersionHelper.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ function(get_version)
88
execute_process(COMMAND git rev-list --count "${version_commit}..HEAD"
99
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
1010
OUTPUT_VARIABLE patch_number)
11+
string(STRIP ${patch_number} patch_number)
1112

1213
set(KALDI_VERSION ${version} PARENT_SCOPE)
1314
set(KALDI_PATCH_NUMBER ${patch_number} PARENT_SCOPE)

0 commit comments

Comments
 (0)