Skip to content

Commit

Permalink
Check OpenMP_C_FOUND instead of OpenMP_FOUND
Browse files Browse the repository at this point in the history
OpenMP_FOUND can be true if the Fortran OpenMP library was found. Specifically check if OpenMP_C_FOUND instead.
  • Loading branch information
kgerheiser authored Nov 19, 2020
1 parent a78cde5 commit 7fa0ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgrib2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if(USE_PNG)
target_link_libraries(obj_lib PUBLIC PNG::PNG)
endif()

if(OpenMP_FOUND)
if(OpenMP_C_FOUND)
target_link_libraries(obj_lib PUBLIC OpenMP::OpenMP_C)
endif()

Expand Down

0 comments on commit 7fa0ab2

Please sign in to comment.