CMake: Automatically detect OpenJPEG 2 libraries
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 30 Aug 2018 07:55:40 +0000 (09:55 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 30 Aug 2018 07:55:40 +0000 (09:55 +0200)
There is chance that on a system with both versions installed this
*might* cause some issues. Such system will be pain to support out
of the box anyway.

This change allows to use precompiled libraries without extra
modifications in the config.

build_files/cmake/Modules/FindOpenJPEG.cmake

index 85a4c131fb1de2e380eeeb8e5ce20c013af6c571..a6c28be6782cf0137b645b5a164507170d8fb07d 100644 (file)
@@ -47,6 +47,7 @@ FIND_PATH(OPENJPEG_INCLUDE_DIR
 FIND_LIBRARY(OPENJPEG_LIBRARY
   NAMES
     openjpeg
+    openjp2
   HINTS
     ${_openjpeg_SEARCH_DIRS}
   PATH_SUFFIXES