Unix build: fix regression of 2.3.0 where a shared-only or static-only build lacks...
[openjpeg.git] / src / lib / openjp2 / CMakeLists.txt
index 0b452038458c4013cc305a35e5efc6bbd7b3b73b..f8990ccf095051326e429efd1a7eb67ec543d9a9 100644 (file)
@@ -99,6 +99,7 @@ else()
     set(INSTALL_LIBS ${OPENJPEG_LIBRARY_NAME} openjp2_static)
   else()
     add_library(${OPENJPEG_LIBRARY_NAME} ${OPENJPEG_SRCS})
+    set(INSTALL_LIBS ${OPENJPEG_LIBRARY_NAME})
   endif()
 endif()