--- CMakeLists.txt.orig 2024-09-12 19:14:33 UTC +++ CMakeLists.txt @@ -21,8 +21,8 @@ set(PODOFO_VERSION_PATCH "4" CACHE STRING "Patchlevel set(PODOFO_VERSION_MAJOR "0" CACHE STRING "Major part of podofo version number") set(PODOFO_VERSION_MINOR "10" CACHE STRING "Minor part of podofo version number") set(PODOFO_VERSION_PATCH "4" CACHE STRING "Patchlevel part of podofo version number") -set(PODOFO_VERSION "${PODOFO_VERSION_MAJOR}.${PODOFO_VERSION_MINOR}.${PODOFO_VERSION_PATCH}") set(PODOFO_SOVERSION "2") +set(PODOFO_VERSION "${PODOFO_SOVERSION}.${PODOFO_VERSION_MAJOR}.${PODOFO_VERSION_MINOR}.${PODOFO_VERSION_PATCH}") # # Main includes @@ -149,6 +149,7 @@ endif() message("Libidn not found. AES-256 Encryption support will be disabled") endif() +if(WANT_LIBJPEG) find_package(JPEG) if(JPEG_FOUND) @@ -157,7 +158,9 @@ endif() else() message("Libjpeg not found. JPEG support will be disabled") endif() +endif() +if(WANT_TIFF) find_package(TIFF) if(TIFF_FOUND) @@ -166,7 +169,9 @@ endif() else() message("Libtiff not found. TIFF support will be disabled") endif() +endif() +if(WANT_PNG) find_package(PNG) if(PNG_FOUND) @@ -175,6 +180,7 @@ else() else() message("LibPng not found. PNG support will be disabled") set(PNG_LIBRARIES "") +endif() endif() find_package(Freetype REQUIRED)