Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
79400365
Commit
79400365
authored
Jul 18, 2013
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1736 from ben/default-to-cdecl
Switch default calling convention to cdecl
parents
99a9c86c
e49dc687
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
CMakeLists.txt
+6
-9
No files found.
CMakeLists.txt
View file @
79400365
...
@@ -30,16 +30,13 @@ OPTION( ENABLE_TRACE "Enables tracing support" OFF )
...
@@ -30,16 +30,13 @@ OPTION( ENABLE_TRACE "Enables tracing support" OFF )
OPTION
(
LIBGIT2_FILENAME
"Name of the produced binary"
OFF
)
OPTION
(
LIBGIT2_FILENAME
"Name of the produced binary"
OFF
)
IF
(
MSVC
)
IF
(
MSVC
)
# This option is only availalbe when building with MSVC. By default,
# This option is only availalbe when building with MSVC. By default,
libgit2
#
libgit2 is build using the stdcall calling convention, as that's what
#
is build using the cdecl calling convention, which is useful if you're
#
the CLR expects by default and how the Windows API is built
.
#
writing C. However, the CLR and Win32 API both expect stdcall
.
#
#
# If you are writing a C or C++ program and want to link to libgit2, you
# If you are writing a CLR program and want to link to libgit2, you'll want
# have to either:
# to turn this on by invoking CMake with the "-DSTDCALL=ON" argument.
# - Add /Gz to the compiler options of _your_ program / library.
OPTION
(
STDCALL
"Build libgit2 with the __stdcall convention"
OFF
)
# - Turn this off by invoking CMake with the "-DSTDCALL=Off" argument.
#
OPTION
(
STDCALL
"Build libgit2 with the __stdcall convention"
ON
)
# This option must match the settings used in your program, in particular if you
# This option must match the settings used in your program, in particular if you
# are linking statically
# are linking statically
...
...
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