From d379b6108e4e3f8493c3973b479325a7e116b983 Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Wed, 29 Jul 2020 17:44:20 -0400 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e6aac7f2..45f79b81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,9 @@ endif() if(USE_JASPER) list(APPEND definitions_list -DUSE_JASPER) find_package(Jasper REQUIRED) + if(JASPER_VERSION_STRING VERSION_GREATER_EQUAL "1.900.25") + list(APPEND definitions_list -DJAS_VERSION_MAJOR=2) + endif() endif() if(OPENMP)