diff --git a/src/application/CMakeLists.txt b/src/application/CMakeLists.txt index fb57f826a..08ba2e73c 100644 --- a/src/application/CMakeLists.txt +++ b/src/application/CMakeLists.txt @@ -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