From 6af5b7f6853c18a3abac7c8f7bf8091cdf6464d0 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 28 Sep 2015 11:59:18 +0200 Subject: [PATCH] Another bug with cdf dir --- cmake/modules/FindCDF.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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