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
75cc755f
Commit
75cc755f
authored
Jul 29, 2019
by
Tobias Nießen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: fix _WIN32_WINNT for MinGW
parent
f039c836
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
fuzzers/CMakeLists.txt
+5
-0
tests/CMakeLists.txt
+5
-0
No files found.
fuzzers/CMakeLists.txt
View file @
75cc755f
# Ensure that MinGW provides the correct header files.
IF
(
WIN32 AND NOT CYGWIN
)
ADD_DEFINITIONS
(
-DWIN32 -D_WIN32_WINNT=0x0600
)
ENDIF
()
LINK_DIRECTORIES
(
${
LIBGIT2_LIBDIRS
}
)
INCLUDE_DIRECTORIES
(
${
LIBGIT2_INCLUDES
}
)
INCLUDE_DIRECTORIES
(
SYSTEM
${
LIBGIT2_SYSTEM_INCLUDES
}
)
...
...
tests/CMakeLists.txt
View file @
75cc755f
...
...
@@ -14,6 +14,11 @@ ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
# Ensure that we do not use deprecated functions internally
ADD_DEFINITIONS(-DGIT_DEPRECATE_HARD)
# Ensure that MinGW provides the correct header files.
IF (WIN32 AND NOT CYGWIN)
ADD_DEFINITIONS(-DWIN32 -D_WIN32_WINNT=0x0600)
ENDIF()
INCLUDE_DIRECTORIES(
${
CLAR_PATH
}
${
libgit2_BINARY_DIR
}
/src)
FILE(GLOB_RECURSE SRC_TEST
${
CLAR_PATH
}
/*/*.c
${
CLAR_PATH
}
/*/*.h)
SET(SRC_CLAR "
main.c
" "
clar_libgit2.c
" "
clar_libgit2_trace.c
" "
clar_libgit2_timer.c
" "
clar.c
")
...
...
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