Skip to content

Commit d103620

Browse files
committed
meta: generated features.h is now git2_features.h
Linux has a /usr/include/features.h, which gets confusing; update this to `git2_features.h` and move it into the `util` directory.
1 parent 04f3468 commit d103620

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

src/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,6 @@ if(ICONV_FOUND)
170170
endif()
171171
add_feature_info(iconv GIT_USE_ICONV "iconv encoding conversion support")
172172

173-
#
174-
# Configure support
175-
#
176-
177-
configure_file(features.h.in git2/sys/features.h)
178-
179173
#
180174
# Include child projects
181175
#

src/cli/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set(CLI_INCLUDES
2-
"${libgit2_BINARY_DIR}/src"
2+
"${libgit2_BINARY_DIR}/src/util"
33
"${libgit2_SOURCE_DIR}/src/util"
44
"${libgit2_SOURCE_DIR}/src/cli"
55
"${libgit2_SOURCE_DIR}/include")

src/libgit2/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set_target_properties(libgit2 PROPERTIES C_EXTENSIONS OFF)
88
include(PkgBuildConfig)
99

1010
set(LIBGIT2_INCLUDES
11-
"${PROJECT_BINARY_DIR}/src"
11+
"${PROJECT_BINARY_DIR}/src/util"
1212
"${PROJECT_SOURCE_DIR}/src/libgit2"
1313
"${PROJECT_SOURCE_DIR}/src/util"
1414
"${PROJECT_SOURCE_DIR}/include")

src/util/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ add_library(util OBJECT)
44
set_target_properties(util PROPERTIES C_STANDARD 90)
55
set_target_properties(util PROPERTIES C_EXTENSIONS OFF)
66

7+
configure_file(git2_features.h.in git2_features.h)
8+
79
set(UTIL_INCLUDES
8-
"${PROJECT_BINARY_DIR}/src"
10+
"${PROJECT_BINARY_DIR}/src/util"
911
"${PROJECT_SOURCE_DIR}/src/util"
1012
"${PROJECT_SOURCE_DIR}/include")
1113

File renamed without changes.

src/util/git2_util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#ifndef INCLUDE_git2_util_h__
88
#define INCLUDE_git2_util_h__
99

10-
#ifndef LIBGIT2_NO_FEATURES_H
11-
# include "git2/sys/features.h"
10+
#if !defined(LIBGIT2_NO_FEATURES_H)
11+
# include "git2_features.h"
1212
#endif
1313

1414
#include "git2/common.h"

0 commit comments

Comments
 (0)