Skip to content

Commit

Permalink
Install fstscript only for python build (#52)
Browse files Browse the repository at this point in the history
* Install fstscript only for python build

* Release v1.7.6
  • Loading branch information
csukuangfj authored Sep 8, 2023
1 parent fcd6082 commit f2ff291
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

project(kaldifst CXX)

set(KALDIFST_VERSION "1.7.5")
set(KALDIFST_VERSION "1.7.6")

if(NOT CMAKE_BUILD_TYPE)
message(STATUS "No CMAKE_BUILD_TYPE given, default to Release")
Expand Down
9 changes: 7 additions & 2 deletions cmake/openfst.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,17 @@ function(download_openfst)
# Rename libfst.so.6 to libkaldifst_fst.so.6 to avoid potential conflicts
# when kaldifst is installed.
set_target_properties(fst PROPERTIES OUTPUT_NAME "kaldifst_fst")
set_target_properties(fstscript PROPERTIES OUTPUT_NAME "kaldifst_fstscript")

install(TARGETS fst fstscript
install(TARGETS fst
DESTINATION lib
)

if(KALDIFST_BUILD_PYTHON)
set_target_properties(fstscript PROPERTIES OUTPUT_NAME "kaldifst_fstscript")
install(TARGETS fstscript
DESTINATION lib
)
endif()
endfunction()

download_openfst()

0 comments on commit f2ff291

Please sign in to comment.