Skip to content

Commit a4c9c7d

Browse files
committed
cmake: fix PDFium install
Signed-off-by: Jared Van Bortel <[email protected]>
1 parent 5d53162 commit a4c9c7d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: gpt4all-chat/CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,11 @@ endif()
525525

526526
if (NOT GPT4ALL_USING_QTPDF)
527527
# Install PDFium
528-
install(
529-
FILES ${PDFium_LIBRARY}
530-
LIBRARY DESTINATION ${GPT4ALL_LIB_DEST} COMPONENT ${COMPONENT_NAME_MAIN} # .so/.dylib
531-
RUNTIME DESTINATION bin COMPONENT ${COMPONENT_NAME_MAIN} # .dll
532-
)
528+
if (WIN32)
529+
install(FILES ${PDFium_LIBRARY} DESTINATION bin COMPONENT ${COMPONENT_NAME_MAIN}) # .dll
530+
else()
531+
install(FILES ${PDFium_LIBRARY} DESTINATION ${GPT4ALL_LIB_DEST} COMPONENT ${COMPONENT_NAME_MAIN}) # .so/.dylib
532+
endif()
533533
endif()
534534

535535
if (NOT APPLE)

0 commit comments

Comments
 (0)