Skip to content

Commit b1f6481

Browse files
committed
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.
1 parent be36db2 commit b1f6481

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@ FILE(GLOB SRC_GIT2 *.c *.h
300300
streams/*.c streams/*.h
301301
transports/*.c transports/*.h
302302
xdiff/*.c xdiff/*.h)
303+
IF(APPLE)
304+
# The old Secure Transport API has been deprecated in macOS 10.15.
305+
SET_SOURCE_FILES_PROPERTIES(streams/stransport.c PROPERTIES COMPILE_FLAGS -Wno-deprecated)
306+
ENDIF()
303307

304308
# the xdiff dependency is not (yet) warning-free, disable warnings as
305309
# errors for the xdiff sources until we've sorted them out

0 commit comments

Comments
 (0)