Skip to content

Commit

Permalink
fixed missing link to g2c
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Oct 9, 2024
1 parent 9d436ab commit 1b33ca2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ endif()
message(STATUS "Checking if the user wants to use Jasper...")
if(USE_JASPER)
if (NOT USE_G2CLIB)
message(FATAL_ERROR "If USE_JASPER, USE_G2CLIB must be on")
message(FATAL_ERROR "If USE_JASPER, USE_G2CLIB must be on")
endif()
# list(APPEND definitions_list -DUSE_JASPER)
# find_package(Jasper REQUIRED)
Expand Down
11 changes: 6 additions & 5 deletions wgrib2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ if(USE_NETCDF)
target_link_libraries(obj_lib PUBLIC NetCDF::NetCDF_C)
endif()

if(USE_JASPER)
include_directories(${JASPER_INCLUDE_DIR})
target_include_directories(obj_lib PUBLIC ${JASPER_INCLUDE_DIR})
target_link_libraries(obj_lib PUBLIC ${JASPER_LIBRARIES})
endif()
#if(USE_JASPER)
# include_directories(${JASPER_INCLUDE_DIR})
# target_include_directories(obj_lib PUBLIC ${JASPER_INCLUDE_DIR})
# target_link_libraries(obj_lib PUBLIC ${JASPER_LIBRARIES})
#endif()

if(USE_PNG)
target_link_libraries(obj_lib PUBLIC PNG::PNG)
Expand All @@ -103,6 +103,7 @@ if(OpenMP_C_FOUND)
endif()

if(USE_G2CLIB)
target_link_libraries(obj_lib PUBLIC g2c::g2c)
endif()

if(USE_IPOLATES)
Expand Down

0 comments on commit 1b33ca2

Please sign in to comment.