diff --git a/wgrib2/CMakeLists.txt b/wgrib2/CMakeLists.txt index 2561e917..0ab9385b 100644 --- a/wgrib2/CMakeLists.txt +++ b/wgrib2/CMakeLists.txt @@ -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