Skip to content

Commit

Permalink
Fix kaldi port version issue
Browse files Browse the repository at this point in the history
-- Setting KALDI_VERSION with get_version...
CMake Error at cmake/VersionHelper.cmake:11 (string):
  string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
  CMakeLists.txt:226 (get_version)

CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/WriteBasicConfigVersionFile.cmake:43 (message):
  No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE()
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.29/Modules/CMakePackageConfigHelpers.cmake:362 (write_basic_config_version_file)
  CMakeLists.txt:315 (write_basic_package_version_file)
  • Loading branch information
mike-malburg committed Apr 3, 2024
1 parent 705193f commit 555ffbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions custom-ports/kaldi/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ vcpkg_from_github(
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DKALDI_VERSION=${VERSION}
)

vcpkg_install_cmake()
Expand Down
2 changes: 1 addition & 1 deletion custom-ports/kaldi/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kaldi",
"version": "2024.2.23",
"version": "5.5",
"port-version": 1,
"description": "Kaldi Speech Recognition Toolkit",
"homepage": "https://github.com/kaldi-asr/kaldi",
Expand Down

0 comments on commit 555ffbf

Please sign in to comment.