Commit 464446e6 authored by Konstantin Pavlov's avatar Konstantin Pavlov

contribs: openjpeg: create pkg-config file when requested.

UNIX is just a default, and when we force BUILD_PKGCONFIG_FILES we
expect the file to be created even on a non-UNIX systems (e.g. mingw).

(cherry picked from commit 49cc9197)
Signed-off-by: Konstantin Pavlov's avatarKonstantin Pavlov <thresh@videolan.org>
parent adec1d18
......@@ -22,10 +22,10 @@
endif(OPJ_USE_THREAD AND Threads_FOUND AND CMAKE_USE_PTHREADS_INIT)
endif(BUILD_UNIT_TESTS)
+
+if(UNIX)
+if(BUILD_PKGCONFIG_FILES)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libopenjp2.pc.cmake.in
+ ${PROJECT_BINARY_DIR}/libopenjp2.pc @ONLY)
+endif(UNIX)
+endif(BUILD_PKGCONFIG_FILES)
--- openjpeg/CMakeLists.txt.ORIG 2017-10-04 18:23:14.000000000 -0400
+++ openjpeg/CMakeLists.txt 2017-12-05 19:43:35.573788173 -0500
@@ -359,8 +359,6 @@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment