Skip to content

Commit

Permalink
remove check for use_ipolates = 3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Jul 2, 2024
1 parent cfd692f commit 865e8d5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions wgrib2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,6 @@ if(USE_IPOLATES)

endif()

if(USE_IPOLATES EQUAL 3)
target_link_libraries(obj_lib PUBLIC ip2::ip2_d)

# Link to the Fortran runtime library for each compiler if using ip2.
# The wgrib2 exectuable is created using the C compiler and
# doesn't link the necessary Fortran library required for ip2.
if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$")
target_link_libraries(wgrib2_exe PRIVATE "-lifcore")
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$")
target_link_libraries(wgrib2_exe PRIVATE "-lgfortran")
endif()

endif()

target_link_libraries(obj_lib PUBLIC gctpc -lm)

# Link to gctpc directly because oobject libraries do not link transitively
Expand Down

0 comments on commit 865e8d5

Please sign in to comment.