mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
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:
@@ -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
|
||||
#
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user