Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
a3232d22
Commit
a3232d22
authored
Jul 13, 2014
by
Geoff Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add configured includedir as a default import path
Protected by an ifdef to avoid tripping up non-autotools builds
parent
c8598892
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Makefile.am
c++/Makefile.am
+1
-1
capnp.c++
c++/src/capnp/compiler/capnp.c++
+3
-0
No files found.
c++/Makefile.am
View file @
a3232d22
...
...
@@ -33,7 +33,7 @@ clean-local:
cd
gtest
&&
$(MAKE)
$(AM_MAKEFLAGS)
clean
;
\
fi
AM_CXXFLAGS
=
-I
$(srcdir)
/src
-I
$(builddir)
/src
$(PTHREAD_CFLAGS)
AM_CXXFLAGS
=
-I
$(srcdir)
/src
-I
$(builddir)
/src
-DCAPNP_INCLUDE_DIR
=
'"
$(includedir)
"'
$(PTHREAD_CFLAGS)
AM_LDFLAGS
=
$(PTHREAD_CFLAGS)
...
...
c++/src/capnp/compiler/capnp.c++
View file @
a3232d22
...
...
@@ -281,6 +281,9 @@ public:
if
(
addStandardImportPaths
)
{
loader
.
addImportPath
(
kj
::
heapString
(
"/usr/local/include"
));
loader
.
addImportPath
(
kj
::
heapString
(
"/usr/include"
));
#ifdef CAPNP_INCLUDE_DIR
loader
.
addImportPath
(
kj
::
heapString
(
CAPNP_INCLUDE_DIR
));
#endif
addStandardImportPaths
=
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment