Skip to content

Commit

Permalink
Merge branch 'develop' into libs_wne
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA authored Oct 18, 2024
2 parents e4a800b + 47af6ac commit d941f40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,7 @@ endif()

message(STATUS "Checking if the user want to use OpenMP...")
if(USE_OPENMP)
find_package(OpenMP)
if(OpenMP_CXX_FOUND)
target_link_libraries(MyTarget PUBLIC OpenMP::OpenMP_CXX)
endif()
# if(OpenMP_Fortran_FOUND)
# target_link_libraries(MyTarget PUBLIC OpenMP::OpenMP_Fortran)
# endif()
find_package(OpenMP REQUIRED COMPONENTS C)
endif()

message(STATUS "Checking if the user wants to use PNG...")
Expand Down
6 changes: 3 additions & 3 deletions wgrib2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ if(USE_PNG)
target_link_libraries(obj_lib PUBLIC PNG::PNG)
endif()

if(OpenMP_C_FOUND)
# target_link_libraries(obj_lib PUBLIC OpenMP::OpenMP_C)
if(USE_OPENMP)
target_link_libraries(obj_lib PUBLIC OpenMP::OpenMP_C)
endif()

if(USE_IPOLATES)
Expand All @@ -134,7 +134,7 @@ endif()
target_link_libraries(wgrib2_exe PRIVATE gctpc)

if(USE_AEC)
target_link_libraries(wgrib2_exe PRIVATE aec)
target_link_libraries(wgrib2_exe PRIVATE ${LIBAEC_LIBRARIES})
endif()

if(USE_JASPER)
Expand Down

0 comments on commit d941f40

Please sign in to comment.