46
46
 
            set (PnetCDF_${comp}_LIBRARY_HINTS)
47
47
 
            foreach (lib IN LISTS MPI_${comp}_LIBRARIES)
48
48
 
                get_filename_component (libdir ${lib} PATH)
49
49
 
                list (APPEND PnetCDF_${comp}_LIBRARY_HINTS ${libdir})
50
50
 
                unset (libdir)
51
51
 
            endforeach ()
52
52
 
        endif ()
53
53
 
        
54
54
 
        # Search for the package component
55
55
 
        find_package_component(PnetCDF COMPONENT ${comp}
56
 
-
                               INCLUDE_NAMES ${PnetCDF_${comp}_INCLUDE_NAMES}
57
56
 
                               INCLUDE_HINTS ${PnetCDF_${comp}_INCLUDE_HINTS}
58
 
-
                               LIBRARY_NAMES ${PnetCDF_${comp}_LIBRARY_NAMES}
59
57
 
                               LIBRARY_HINTS ${PnetCDF_${comp}_LIBRARY_HINTS})
60
58
 
    
61
59
 
    endif ()
62
60
 
    
63
61
 
endforeach ()