[gnome-builder] cmake: fix deprecation



commit fb93f4f0cc15ca4908ecb5ab81cc7ff5be9169dc
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 25 15:04:02 2019 -0700

    cmake: fix deprecation

 src/plugins/cmake/gbp-cmake-pipeline-addin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/cmake/gbp-cmake-pipeline-addin.c b/src/plugins/cmake/gbp-cmake-pipeline-addin.c
index 88d45f925..da09dd4e7 100644
--- a/src/plugins/cmake/gbp-cmake-pipeline-addin.c
+++ b/src/plugins/cmake/gbp-cmake-pipeline-addin.c
@@ -114,7 +114,7 @@ gbp_cmake_pipeline_addin_load (IdePipelineAddin *addin,
   toolchain = ide_pipeline_get_toolchain (pipeline);
 
   if (g_strcmp0 (project_file_name, "CMakeLists.txt") == 0)
-    srcdir = g_dirname (g_file_peek_path (project_file));
+    srcdir = g_path_get_dirname (g_file_peek_path (project_file));
   else
     srcdir = g_strdup (ide_pipeline_get_srcdir (pipeline));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]