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.
This commit is contained in:
Edward Thomson
2022-06-18 16:10:38 -04:00
parent 04f34688c4
commit d103620158
6 changed files with 7 additions and 11 deletions

View File

@@ -170,12 +170,6 @@ if(ICONV_FOUND)
endif()
add_feature_info(iconv GIT_USE_ICONV "iconv encoding conversion support")
#
# Configure support
#
configure_file(features.h.in git2/sys/features.h)
#
# Include child projects
#

View File

@@ -1,5 +1,5 @@
set(CLI_INCLUDES
"${libgit2_BINARY_DIR}/src"
"${libgit2_BINARY_DIR}/src/util"
"${libgit2_SOURCE_DIR}/src/util"
"${libgit2_SOURCE_DIR}/src/cli"
"${libgit2_SOURCE_DIR}/include")

View File

@@ -8,7 +8,7 @@ set_target_properties(libgit2 PROPERTIES C_EXTENSIONS OFF)
include(PkgBuildConfig)
set(LIBGIT2_INCLUDES
"${PROJECT_BINARY_DIR}/src"
"${PROJECT_BINARY_DIR}/src/util"
"${PROJECT_SOURCE_DIR}/src/libgit2"
"${PROJECT_SOURCE_DIR}/src/util"
"${PROJECT_SOURCE_DIR}/include")

View File

@@ -4,8 +4,10 @@ add_library(util OBJECT)
set_target_properties(util PROPERTIES C_STANDARD 90)
set_target_properties(util PROPERTIES C_EXTENSIONS OFF)
configure_file(git2_features.h.in git2_features.h)
set(UTIL_INCLUDES
"${PROJECT_BINARY_DIR}/src"
"${PROJECT_BINARY_DIR}/src/util"
"${PROJECT_SOURCE_DIR}/src/util"
"${PROJECT_SOURCE_DIR}/include")

View File

@@ -7,8 +7,8 @@
#ifndef INCLUDE_git2_util_h__
#define INCLUDE_git2_util_h__
#ifndef LIBGIT2_NO_FEATURES_H
# include "git2/sys/features.h"
#if !defined(LIBGIT2_NO_FEATURES_H)
# include "git2_features.h"
#endif
#include "git2/common.h"