Skip to content

Commit

Permalink
Make installing of versioned links optional
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLazarescu committed Feb 14, 2024
1 parent 65aaa99 commit 8ba0ee7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/application/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,14 @@ if(LINUX)
DESTINATION lib)

# Install links with correct permissions
install(FILES ${MUPDF_OUTPUT_DIR}/libmupdfcpp.so.24.0
${MUPDF_OUTPUT_DIR}/libmupdf.so.24.0
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
DESTINATION lib)
if(EXISTS "${MUPDF_OUTPUT_DIR}/libmupdfcpp.so.24.0")
install(FILES ${MUPDF_OUTPUT_DIR}/libmupdfcpp.so.24.0
${MUPDF_OUTPUT_DIR}/libmupdf.so.24.0
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
DESTINATION lib)
endif()

elseif(APPLE)
install(TARGETS application
Expand Down

0 comments on commit 8ba0ee7

Please sign in to comment.