0004-install-static-lib.patch 1.0 KB

123456789101112131415161718192021222324252627
  1. From 66297f07a43d2770a97c8456d20202f3d051d980 Mon Sep 17 00:00:00 2001
  2. From: Even Rouault <even.rouault@spatialys.com>
  3. Date: Mon, 9 Oct 2017 11:40:43 +0200
  4. Subject: [PATCH] Unix build: fix regression of 2.3.0 where a shared-only or
  5. static-only build lacks the installation target for the library (#1019, fixes
  6. regression introduced by 3dfc6ca2bcf06fd1adb6b6b4cecc6c092f08ba0b)
  7. Downloaded from upstream commit
  8. https://github.com/uclouvain/openjpeg/commit/66297f07a43d2770a97c8456d20202f3d051d980
  9. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  10. ---
  11. src/lib/openjp2/CMakeLists.txt | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/src/lib/openjp2/CMakeLists.txt b/src/lib/openjp2/CMakeLists.txt
  14. index 0b4520384..f8990ccf0 100644
  15. --- a/src/lib/openjp2/CMakeLists.txt
  16. +++ b/src/lib/openjp2/CMakeLists.txt
  17. @@ -99,6 +99,7 @@ else()
  18. set(INSTALL_LIBS ${OPENJPEG_LIBRARY_NAME} openjp2_static)
  19. else()
  20. add_library(${OPENJPEG_LIBRARY_NAME} ${OPENJPEG_SRCS})
  21. + set(INSTALL_LIBS ${OPENJPEG_LIBRARY_NAME})
  22. endif()
  23. endif()