From 565217ed6d9efeee56b79e7a0eba36ba882648b7 Mon Sep 17 00:00:00 2001 From: AlysonStahl-NOAA <166434581+AlysonStahl-NOAA@users.noreply.github.com> Date: Fri, 29 Nov 2024 12:28:20 -0800 Subject: [PATCH] add missing link to gctpc in lib build --- wgrib2/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgrib2/CMakeLists.txt b/wgrib2/CMakeLists.txt index 878fe63..9e1d006 100644 --- a/wgrib2/CMakeLists.txt +++ b/wgrib2/CMakeLists.txt @@ -153,7 +153,7 @@ target_link_libraries(wgrib2_exe PRIVATE obj_lib) if(BUILD_LIB) set(headers wgrib2_api.h wgrib2.h ${CMAKE_BINARY_DIR}/wgrib2/wgrib2_meta.h) -## target_link_libraries(wgrib2_lib PUBLIC gctpc) + target_link_libraries(wgrib2_lib PUBLIC gctpc -lm) set_target_properties(wgrib2_lib PROPERTIES PUBLIC_HEADER "${headers}") target_compile_definitions(wgrib2_lib PUBLIC ${definitions_list})