Skip to content

Commit

Permalink
added find to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Mar 29, 2024
1 parent 850cdc0 commit e207c8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ if(USE_PNG)
find_package(PNG REQUIRED)
endif()

# Find required packages to use AEC.
message(STATUS "Checking of the user wants to use AEC...")
if(USE_AEC)
find_package(libaec 1.0.6 REQUIRED)
endif()

# write config.h
message(STATUS "Writing config.h...")
FILE(WRITE "wgrib2/config.h" "/* config.h generated by cmake */\n")
Expand Down

0 comments on commit e207c8b

Please sign in to comment.