From 14efae9ac27757b226a047ac2fbded2c5c85be3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Fri, 28 Jan 2011 19:34:03 +0100 Subject: Treat 3rdPatry boost/uuid dir as system dir. This fixes compilation warnings in uuid. diff --git a/3rdParty/Boost/SConscript b/3rdParty/Boost/SConscript index 87d8ef5..86871fd 100644 --- a/3rdParty/Boost/SConscript +++ b/3rdParty/Boost/SConscript @@ -5,7 +5,11 @@ if env.get("BOOST_BUNDLED_UUID_ONLY", False) : # Cherry pick UUID out of the 3rdParty dir, install it in a separate # dir, and use this as an include path. if env["SCONS_STAGE"] == "flags" : - env["BOOST_FLAGS"]["CPPFLAGS"] = env["BOOST_FLAGS"].get("CPPFLAGS", []) + ["-I" + env.Dir("uuid").abspath] + if env["PLATFORM"] == "win32" : + uuid_cppflags = ["/I" + Dir("uuid").abspath] + else : + uuid_cppflags = [("-isystem", Dir("uuid").abspath)] + env["BOOST_FLAGS"]["CPPFLAGS"] = env["BOOST_FLAGS"].get("CPPFLAGS", []) + uuid_cppflags elif env["SCONS_STAGE"] == "build" : env.Install("uuid/boost", "src/boost/uuid") -- cgit v0.10.2-6-g49f6