Skip to content

Commit

Permalink
FindNetCDF.cmake: always remove duplicates from NetCDF_LIBRARIES, not…
Browse files Browse the repository at this point in the history
… just for shared libraries
  • Loading branch information
climbfuji committed Aug 23, 2023
1 parent 43774d7 commit fbe7b4b
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 fbe7b4b

Please sign in to comment.