Skip to content

Commit

Permalink
Merge pull request #68 from climbfuji/feature/netcdf_libraries_always…
Browse files Browse the repository at this point in the history
…_remove_duplicates

Always remove duplicates from `NetCDF_LIBRARIES` list, not just for shared libraries
  • Loading branch information
climbfuji committed Sep 11, 2023
2 parents 43774d7 + fbe7b4b commit 607d9b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/FindNetCDF.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ foreach( _comp IN LISTS _search_components )
endif()
endif()
endforeach()
if(NetCDF_LIBRARIES AND NetCDF_${_comp}_LIBRARY_SHARED)
#if(NetCDF_LIBRARIES AND NetCDF_${_comp}_LIBRARY_SHARED)
if(NetCDF_LIBRARIES)
list(REMOVE_DUPLICATES NetCDF_LIBRARIES)
endif()
set(NetCDF_LIBRARIES "${NetCDF_LIBRARIES}" CACHE STRING "NetCDF library targets" FORCE)
Expand Down

0 comments on commit 607d9b4

Please sign in to comment.