diff --git a/cmake/modules/FindCDF.cmake b/cmake/modules/FindCDF.cmake index 405d72d..785cb08 100644 --- a/cmake/modules/FindCDF.cmake +++ b/cmake/modules/FindCDF.cmake @@ -19,6 +19,6 @@ ELSE(libcdf_INCLUDE_DIR AND libcdf_LIBRARIES) message(STATUS "NOT Found libcdf, disabling it") ENDIF(libcdf_INCLUDE_DIR AND libcdf_LIBRARIES) -get_filename_component(libcdf_LIBRARY_DIR ${libcdf_LIBRARIES} DIRECTORY) +get_filename_component(libcdf_LIBRARY_DIR ${libcdf_LIBRARIES} PATH) MARK_AS_ADVANCED(libcdf_INCLUDE_DIR libcdf_LIBRARY_DIR libcdf_LIBRARIES) -- libgit2 0.21.2