-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Generalize install locations #1791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
On Fedora the install location is dependent on the arch ex/ for x86_64 libraries install to /usr/lib64 So copy how llama-cpp does its install, replacing 'llama' with 'whisper' in the cmake variables. Signed-off-by: Tom Rix <[email protected]>
|
The change seem to break Windows builds. Any hope to fix it? |
| set(WHISPER_INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR} | ||
| CACHE PATH "Location of header files") | ||
| set(WHISPER_LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} | ||
| CACHE PATH "Location of library files") | ||
| set(WHISPER_BIN_INSTALL_DIR ${CMAKE_INSTALL_BINDIR} | ||
| CACHE PATH "Location of binary files") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for exposing these as variables?
| LIBRARY DESTINATION "${WHISPER_LIB_INSTALL_DIR}" | ||
| ARCHIVE DESTINATION "${WHISPER_LIB_INSTALL_DIR}/static" | ||
| RUNTIME DESTINATION "${WHISPER_BIN_INSTALL_DIR}" | ||
| RESOURCE DESTINATION "${WHISPER_BIN_INSTALL_DIR}" | ||
| PUBLIC_HEADER DESTINATION "${WHISPER_INCLUDE_INSTALL_DIR}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| LIBRARY DESTINATION "${WHISPER_LIB_INSTALL_DIR}" | |
| ARCHIVE DESTINATION "${WHISPER_LIB_INSTALL_DIR}/static" | |
| RUNTIME DESTINATION "${WHISPER_BIN_INSTALL_DIR}" | |
| RESOURCE DESTINATION "${WHISPER_BIN_INSTALL_DIR}" | |
| PUBLIC_HEADER DESTINATION "${WHISPER_INCLUDE_INSTALL_DIR}" |
If the custom directories are removed, you can use the defaults, which are already compatible with windows (at least through vcpkg)
|
This patch is now in conflict with the latest master branch. @ggerganov Is there any hope to get install rules included in the cmake setup? I guess Windows compatibility is required? |
@petterreinholdtsen I thought they are already included. If it does not work on Windows, please propose a patch to fix it. |
On Fedora the install location is dependent on the arch ex/ for x86_64 libraries install to /usr/lib64
So copy how llama-cpp does its install, replacing 'llama' with 'whisper' in the cmake variables.