From 1f70a58280db165c0df80c81b41986f1d67c0a95 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Fri, 5 Jan 2018 15:57:54 +0100 Subject: Mark OpenSSL headers as system includes This avoids warnings in code out of our control. Test-Information: Less warnings are emitted on macOS 10.13.2 with clang trunk. Change-Id: Ie5f28743000e5a7865fea9677e4429ab0543e378 diff --git a/3rdParty/OpenSSL/SConscript b/3rdParty/OpenSSL/SConscript index c95ea05..6e114e4 100644 --- a/3rdParty/OpenSSL/SConscript +++ b/3rdParty/OpenSSL/SConscript @@ -2,10 +2,15 @@ Import("env", "conf_env") openssl_bundle_dir = "openssl" +if env["PLATFORM"] == "win32" : + systemIncludeFlag = "/I" +else: + systemIncludeFlag = "-isystem" + if env.get("OPENSSL_BUNDLED", False) : if env["SCONS_STAGE"] == "flags" : env["OPENSSL_FLAGS"] = { - "CPPPATH": [Dir(openssl_bundle_dir + "/include")], + "CCFLAGS": [systemIncludeFlag + Dir(openssl_bundle_dir + "/include").abspath], "LIBPATH": [Dir(".")], "LIBS": ["ssl", "crypto"] } -- cgit v0.10.2-6-g49f6