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
a6e331b4
Unverified
Commit
a6e331b4
authored
Mar 12, 2019
by
Kenton Varda
Committed by
GitHub
Mar 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #804 from tarcila/master
Fix capnpc extension handling on Windows
parents
aa53106d
fdbf0356
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CMakeLists.txt
c++/src/capnp/CMakeLists.txt
+1
-1
capnp.c++
c++/src/capnp/compiler/capnp.c++
+1
-1
No files found.
c++/src/capnp/CMakeLists.txt
View file @
a6e331b4
...
...
@@ -182,7 +182,7 @@ if(NOT CAPNP_LITE)
install
(
TARGETS capnp_tool capnpc_cpp capnpc_capnp
${
INSTALL_TARGETS_DEFAULT_ARGS
}
)
# Symlink capnpc -> capnp
install
(
CODE
"execute_process(COMMAND
\"
${
CMAKE_COMMAND
}
\"
-E create_symlink capnp
\"\$
ENV{DESTDIR}
${
CMAKE_INSTALL_FULL_BINDIR
}
/capnpc
\"
)"
)
install
(
CODE
"execute_process(COMMAND
\"
${
CMAKE_COMMAND
}
\"
-E create_symlink capnp
${
CMAKE_EXECUTABLE_SUFFIX
}
\"\$
ENV{DESTDIR}
${
CMAKE_INSTALL_FULL_BINDIR
}
/capnpc
${
CMAKE_EXECUTABLE_SUFFIX
}
\"
)"
)
endif
()
# NOT CAPNP_LITE
# Tests ========================================================================
...
...
c++/src/capnp/compiler/capnp.c++
View file @
a6e331b4
...
...
@@ -78,7 +78,7 @@ public:
:
context
(
context
),
disk
(
kj
::
newDiskFilesystem
()),
loader
(
*
this
)
{}
kj
::
MainFunc
getMain
()
{
if
(
context
.
getProgramName
().
endsWith
(
"capnpc"
))
{
if
(
context
.
getProgramName
().
endsWith
(
"capnpc"
)
||
context
.
getProgramName
().
endsWith
(
"capnpc.exe"
)
)
{
kj
::
MainBuilder
builder
(
context
,
VERSION_STRING
,
"Compiles Cap'n Proto schema files and generates corresponding source code in one or "
"more languages."
);
...
...
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