We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9840dad + 0e70903 commit 34ec6f3Copy full SHA for 34ec6f3
src/CMakeLists.txt
@@ -2,7 +2,10 @@ IF(DEBUG_POOL)
2
SET(GIT_DEBUG_POOL 1)
3
ENDIF()
4
5
-SET(LIBGIT2_OBJECTS "")
+# Add the features.h file as a dummy. This is required for Xcode
6
+# to successfully build the libgit2 library when using only
7
+# object libraries.
8
+SET(LIBGIT2_OBJECTS "${CMAKE_CURRENT_BINARY_DIR}/git2/sys/features.h")
9
10
# This variable will contain the libraries we need to put into
11
# libgit2.pc's Requires.private. That is, what we're linking to or
0 commit comments