summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2020-03-10 22:07:35 +0100
committerPatrick Steinhardt <ps@pks.im>2020-03-13 22:47:42 +0100
commitb1f6481f2db87cb8f85a8a588d78eb4f25aaaf23 (patch)
treeaafc74951475fc94b8ede6f085518b5bee690c02
parentbe36db28f64de8ed5ca9870708a56b6668c6c482 (diff)
downloadlibgit2-b1f6481f2db87cb8f85a8a588d78eb4f25aaaf23.tar.gz
cmake: ignore deprecation notes for Secure Transport
The Secure Transport interface we're currently using has been deprecated with macOS 10.15. As we're currently in code freeze, we cannot migrate to newer interfaces. As such, let's disable deprecation warnings for our "schannel.c" stream.
-rw-r--r--src/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 1915e8a9a..3dfb69ceb 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -300,6 +300,10 @@ FILE(GLOB SRC_GIT2 *.c *.h
streams/*.c streams/*.h
transports/*.c transports/*.h
xdiff/*.c xdiff/*.h)
+IF(APPLE)
+ # The old Secure Transport API has been deprecated in macOS 10.15.
+ SET_SOURCE_FILES_PROPERTIES(streams/stransport.c PROPERTIES COMPILE_FLAGS -Wno-deprecated)
+ENDIF()
# the xdiff dependency is not (yet) warning-free, disable warnings as
# errors for the xdiff sources until we've sorted them out