Skip to content

Commit

Permalink
cmake: fix PDFium install
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Van Bortel <[email protected]>
  • Loading branch information
cebtenzzre committed Jan 24, 2025
1 parent 5d53162 commit a4c9c7d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gpt4all-chat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -525,11 +525,11 @@ endif()

if (NOT GPT4ALL_USING_QTPDF)
# Install PDFium
install(
FILES ${PDFium_LIBRARY}
LIBRARY DESTINATION ${GPT4ALL_LIB_DEST} COMPONENT ${COMPONENT_NAME_MAIN} # .so/.dylib
RUNTIME DESTINATION bin COMPONENT ${COMPONENT_NAME_MAIN} # .dll
)
if (WIN32)
install(FILES ${PDFium_LIBRARY} DESTINATION bin COMPONENT ${COMPONENT_NAME_MAIN}) # .dll
else()
install(FILES ${PDFium_LIBRARY} DESTINATION ${GPT4ALL_LIB_DEST} COMPONENT ${COMPONENT_NAME_MAIN}) # .so/.dylib
endif()
endif()

if (NOT APPLE)
Expand Down

0 comments on commit a4c9c7d

Please sign in to comment.