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
071750a3
Commit
071750a3
authored
Aug 15, 2019
by
Tobias Nießen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: move _WIN32_WINNT definitions to root
parent
fb0730f1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
12 deletions
+5
-12
CMakeLists.txt
+5
-0
fuzzers/CMakeLists.txt
+0
-5
src/CMakeLists.txt
+0
-2
tests/CMakeLists.txt
+0
-5
No files found.
CMakeLists.txt
View file @
071750a3
...
@@ -263,6 +263,11 @@ ELSE ()
...
@@ -263,6 +263,11 @@ ELSE ()
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
# Ensure that MinGW provides the correct header files.
IF
(
WIN32 AND NOT CYGWIN
)
ADD_DEFINITIONS
(
-DWIN32 -D_WIN32_WINNT=0x0600
)
ENDIF
()
IF
(
NOT CMAKE_CONFIGURATION_TYPES
)
IF
(
NOT CMAKE_CONFIGURATION_TYPES
)
# Build Debug by default
# Build Debug by default
IF
(
NOT CMAKE_BUILD_TYPE
)
IF
(
NOT CMAKE_BUILD_TYPE
)
...
...
fuzzers/CMakeLists.txt
View file @
071750a3
# 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
}
)
LINK_DIRECTORIES
(
${
LIBGIT2_LIBDIRS
}
)
INCLUDE_DIRECTORIES
(
${
LIBGIT2_INCLUDES
}
)
INCLUDE_DIRECTORIES
(
${
LIBGIT2_INCLUDES
}
)
INCLUDE_DIRECTORIES
(
SYSTEM
${
LIBGIT2_SYSTEM_INCLUDES
}
)
INCLUDE_DIRECTORIES
(
SYSTEM
${
LIBGIT2_SYSTEM_INCLUDES
}
)
...
...
src/CMakeLists.txt
View file @
071750a3
...
@@ -299,8 +299,6 @@ FILE(GLOB SRC_H
...
@@ -299,8 +299,6 @@ FILE(GLOB SRC_H
# On Windows use specific platform sources
# On Windows use specific platform sources
IF
(
WIN32 AND NOT CYGWIN
)
IF
(
WIN32 AND NOT CYGWIN
)
ADD_DEFINITIONS
(
-DWIN32 -D_WIN32_WINNT=0x0600
)
IF
(
MSVC
)
IF
(
MSVC
)
SET
(
WIN_RC
"win32/git2.rc"
)
SET
(
WIN_RC
"win32/git2.rc"
)
ENDIF
()
ENDIF
()
...
...
tests/CMakeLists.txt
View file @
071750a3
...
@@ -14,11 +14,6 @@ ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
...
@@ -14,11 +14,6 @@ ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
# Ensure that we do not use deprecated functions internally
# Ensure that we do not use deprecated functions internally
ADD_DEFINITIONS(-DGIT_DEPRECATE_HARD)
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)
INCLUDE_DIRECTORIES(
${
CLAR_PATH
}
${
libgit2_BINARY_DIR
}
/src)
FILE(GLOB_RECURSE SRC_TEST
${
CLAR_PATH
}
/*/*.c
${
CLAR_PATH
}
/*/*.h)
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
")
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