File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed
Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,11 @@ ELSE ()
263263 ENDIF ()
264264ENDIF ()
265265
266+ # Ensure that MinGW provides the correct header files.
267+ IF (WIN32 AND NOT CYGWIN )
268+ ADD_DEFINITIONS (-DWIN32 -D_WIN32_WINNT=0x0600)
269+ ENDIF ()
270+
266271IF ( NOT CMAKE_CONFIGURATION_TYPES )
267272 # Build Debug by default
268273 IF (NOT CMAKE_BUILD_TYPE )
Original file line number Diff line number Diff line change 1- # Ensure that MinGW provides the correct header files.
2- IF (WIN32 AND NOT CYGWIN )
3- ADD_DEFINITIONS (-DWIN32 -D_WIN32_WINNT=0x0600)
4- ENDIF ()
5-
61LINK_DIRECTORIES (${LIBGIT2_LIBDIRS} )
72INCLUDE_DIRECTORIES (${LIBGIT2_INCLUDES} )
83INCLUDE_DIRECTORIES (SYSTEM ${LIBGIT2_SYSTEM_INCLUDES} )
Original file line number Diff line number Diff line change @@ -299,8 +299,6 @@ FILE(GLOB SRC_H
299299
300300# On Windows use specific platform sources
301301IF (WIN32 AND NOT CYGWIN )
302- ADD_DEFINITIONS (-DWIN32 -D_WIN32_WINNT=0x0600)
303-
304302 IF (MSVC )
305303 SET (WIN_RC "win32/git2.rc" )
306304 ENDIF ()
Original file line number Diff line number Diff line change @@ -14,11 +14,6 @@ ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
1414# Ensure that we do not use deprecated functions internally
1515ADD_DEFINITIONS (-DGIT_DEPRECATE_HARD)
1616
17- # Ensure that MinGW provides the correct header files.
18- IF (WIN32 AND NOT CYGWIN )
19- ADD_DEFINITIONS (-DWIN32 -D_WIN32_WINNT=0x0600)
20- ENDIF ()
21-
2217INCLUDE_DIRECTORIES (${CLAR_PATH} ${libgit2_BINARY_DIR} /src)
2318FILE (GLOB_RECURSE SRC_TEST ${CLAR_PATH} /*/*.c ${CLAR_PATH} /*/*.h)
2419SET (SRC_CLAR "main.c" "clar_libgit2.c" "clar_libgit2_trace.c" "clar_libgit2_timer.c" "clar.c" )
You can’t perform that action at this time.
0 commit comments