mirror of
https://github.com/csukuangfj/kaldifeat.git
synced 2025-08-16 20:52:16 +00:00
minor fixes
This commit is contained in:
parent
4b672b1f8a
commit
9d2d7fe77c
3
.github/workflows/build_conda_ubuntu_cpu.yml
vendored
3
.github/workflows/build_conda_ubuntu_cpu.yml
vendored
@ -20,9 +20,6 @@ name: build_conda_ubuntu_cpu
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- conda
|
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
|
@ -20,9 +20,6 @@ name: build_conda_windows_cpu
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- conda
|
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
|
@ -18,6 +18,16 @@ target_link_libraries(kaldifeat_core PUBLIC ${TORCH_LIBRARIES})
|
|||||||
target_compile_definitions(kaldifeat_core PUBLIC KALDIFEAT_TORCH_VERSION_MAJOR=${KALDIFEAT_TORCH_VERSION_MAJOR})
|
target_compile_definitions(kaldifeat_core PUBLIC KALDIFEAT_TORCH_VERSION_MAJOR=${KALDIFEAT_TORCH_VERSION_MAJOR})
|
||||||
target_compile_definitions(kaldifeat_core PUBLIC KALDIFEAT_TORCH_VERSION_MINOR=${KALDIFEAT_TORCH_VERSION_MINOR})
|
target_compile_definitions(kaldifeat_core PUBLIC KALDIFEAT_TORCH_VERSION_MINOR=${KALDIFEAT_TORCH_VERSION_MINOR})
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
execute_process(
|
||||||
|
COMMAND "${PYTHON_EXECUTABLE}" -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
OUTPUT_VARIABLE PYTHON_SITE_PACKAGE_DIR
|
||||||
|
)
|
||||||
|
message(STATUS "PYTHON_SITE_PACKAGE_DIR: ${PYTHON_SITE_PACKAGE_DIR}")
|
||||||
|
target_link_libraries(kaldifeat_core PUBLIC "-L ${PYTHON_SITE_PACKAGE_DIR}/../..")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(test_kaldifeat test_kaldifeat.cc)
|
add_executable(test_kaldifeat test_kaldifeat.cc)
|
||||||
target_link_libraries(test_kaldifeat PRIVATE kaldifeat_core)
|
target_link_libraries(test_kaldifeat PRIVATE kaldifeat_core)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user