[osmium-tool] 02/13: Use absolute paths to includes in YouCompleteMe configuration.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Tue Jul 21 20:15:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to tag v1.0.1
in repository osmium-tool.
commit 3e042626f1a3a332593a791757cc837224c136a8
Author: Jochen Topf <jochen at topf.org>
Date: Sun Mar 29 13:02:33 2015 +0200
Use absolute paths to includes in YouCompleteMe configuration.
---
.ycm_extra_conf.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py
index cdff62b..39be220 100644
--- a/.ycm_extra_conf.py
+++ b/.ycm_extra_conf.py
@@ -6,6 +6,10 @@
#
#-----------------------------------------------------------------------------
+from os.path import realpath, dirname
+
+basedir = dirname(realpath(__file__))
+
# some default flags
# for more information install clang-3.2-doc package and
# check UsersManual.html
@@ -26,7 +30,7 @@ flags = [
'c++',
# libosmium include dirs
-'-I../libosmium/include',
+'-I%s/../libosmium/include' % basedir,
]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmium-tool.git
More information about the Pkg-grass-devel
mailing list