Skip to content

Commit

Permalink
fix cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
GiviMAD committed Dec 20, 2023
1 parent 333ddd4 commit 773be21
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
38 changes: 17 additions & 21 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,24 +80,20 @@ install(

# Dependencies

if(!MSVC)
install(
DIRECTORY ${WHISPER_DIR}/lib/
DESTINATION ${CMAKE_INSTALL_PREFIX}
USE_SOURCE_PERMISSIONS
FILES_MATCHING
PATTERN "*.dll"
PATTERN "*.so"
PATTERN "*.dylib"
)
else()
install(
DIRECTORY ${WHISPER_DIR}/bin/
DESTINATION ${CMAKE_INSTALL_PREFIX}
USE_SOURCE_PERMISSIONS
FILES_MATCHING
PATTERN "*.dll"
PATTERN "*.so"
PATTERN "*.dylib"
)
endif()
install(
DIRECTORY ${WHISPER_DIR}/lib/
DESTINATION ${CMAKE_INSTALL_PREFIX}
USE_SOURCE_PERMISSIONS
FILES_MATCHING
PATTERN "*.so"
PATTERN "*.dylib"
)

install(
DIRECTORY ${WHISPER_DIR}/bin/
DESTINATION ${CMAKE_INSTALL_PREFIX}
USE_SOURCE_PERMISSIONS
FILES_MATCHING
PATTERN "*.dll"
)

3 changes: 2 additions & 1 deletion build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ TARGET=$AARCH-apple-macosx$TARGET_VERSION

cmake -Bbuild -DCMAKE_INSTALL_PREFIX=src/main/resources/macos-$AARCH_NAME -DCMAKE_OSX_DEPLOYMENT_TARGET=$TARGET_VERSION -DCMAKE_OSX_ARCHITECTURES=$AARCH
cmake --build build --config Release
cmake --install build
cmake --install build
rm -rf build

0 comments on commit 773be21

Please sign in to comment.