Skip to content

Commit

Permalink
Merge pull request #9 from NOAA-EMC/jasper-version-check
Browse files Browse the repository at this point in the history
Check for JASPER version and do what wgrib2/Changes suggests.
  • Loading branch information
kgerheiser authored Jul 29, 2020
2 parents c28d832 + d379b61 commit 4fb98c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4fb98c8

Please sign in to comment.