From bcd3c09fc6f4264108e0e658122515b50db29c77 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 28 Dec 2017 01:21:13 +0100 Subject: Add package include dirs config Fix getRealPath returning corrupt path. This allows you to specifying a list of include dirs under [package], like: [package] name = "blabla" include_dirs = ["include"] There are many libraries that include paths to header files like this, so when including a header file, you dont have to specify relative path to header files (which can be long), and you can use same path no matter where you are including header from. Currently include_dirs is not propagated to dependant packages and im not sure if they should be, from the looks of it the reason you want include_dirs is internal package setup. --- src/FileUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/FileUtil.cpp') diff --git a/src/FileUtil.cpp b/src/FileUtil.cpp index 7248537..d075f2b 100644 --- a/src/FileUtil.cpp +++ b/src/FileUtil.cpp @@ -223,7 +223,7 @@ namespace sibs string result = resolved; free(resolved); - return Result::Ok(resolved); + return Result::Ok(result); } #else #error "TODO: Implement createDirectoryRecursive and getRealPath on windows" -- cgit v1.2.3