CMake: Automatically detect OpenJPEG 2 libraries
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.
This commit is contained in:
@@ -47,6 +47,7 @@ FIND_PATH(OPENJPEG_INCLUDE_DIR
|
|||||||
FIND_LIBRARY(OPENJPEG_LIBRARY
|
FIND_LIBRARY(OPENJPEG_LIBRARY
|
||||||
NAMES
|
NAMES
|
||||||
openjpeg
|
openjpeg
|
||||||
|
openjp2
|
||||||
HINTS
|
HINTS
|
||||||
${_openjpeg_SEARCH_DIRS}
|
${_openjpeg_SEARCH_DIRS}
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
|
Reference in New Issue
Block a user