From: Even Rouault Date: Mon, 9 Oct 2017 09:40:43 +0000 (+0200) Subject: Unix build: fix regression of 2.3.0 where a shared-only or static-only build lacks... X-Git-Tag: v2.3.1~56 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=66297f07a43d2770a97c8456d20202f3d051d980;p=openjpeg.git Unix build: fix regression of 2.3.0 where a shared-only or static-only build lacks the installation target for the library (#1019, fixes regression introduced by 3dfc6ca2bcf06fd1adb6b6b4cecc6c092f08ba0b) --- diff --git a/src/lib/openjp2/CMakeLists.txt b/src/lib/openjp2/CMakeLists.txt index 0b452038..f8990ccf 100644 --- a/src/lib/openjp2/CMakeLists.txt +++ b/src/lib/openjp2/CMakeLists.txt @@ -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()