CMake: add openjpeg 2x search paths
authorCampbell Barton <ideasman42@gmail.com>
Wed, 12 Sep 2018 06:26:15 +0000 (16:26 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 12 Sep 2018 06:26:15 +0000 (16:26 +1000)
Wasn't finding the include path by on Linux.

build_files/cmake/Modules/FindOpenJPEG.cmake

index 20d1994c7ba5b3b3391b8098a3e32cb9029bc8bf..0f1d0d0a8654a0a7623280e6e95d508ae363dbb7 100644 (file)
@@ -41,6 +41,17 @@ FIND_PATH(OPENJPEG_INCLUDE_DIR
     ${_openjpeg_SEARCH_DIRS}
   PATH_SUFFIXES
     include
+    # Support future versions
+    openjpeg-2.9
+    openjpeg-2.8
+    openjpeg-2.7
+    openjpeg-2.6
+    openjpeg-2.5
+    openjpeg-2.4
+    openjpeg-2.3
+    openjpeg-2.2
+    openjpeg-2.1
+    openjpeg-2.0
 )
 
 FIND_LIBRARY(OPENJPEG_LIBRARY