From 403cbfef86c0ffab43064f49b578b22280ac8a6e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Thu, 11 Nov 2010 21:46:19 +0100
Subject: Avoid scons error when OpenSSL is not found.


diff --git a/Swift/SConscript b/Swift/SConscript
index ee0140c..a1ee3ae 100644
--- a/Swift/SConscript
+++ b/Swift/SConscript
@@ -7,7 +7,8 @@ SConscript("Controllers/SConscript")
 if env["SCONS_STAGE"] == "build" :
 	if not GetOption("help") and not env.get("HAVE_OPENSSL", 0) :
 		print "Error: Swift requires OpenSSL support, and OpenSSL was not found."
-		env["PROJECTS"].remove("Swift")
+		if "Swift" in env["PROJECTS"] :
+			env["PROJECTS"].remove("Swift")
 	elif not GetOption("help") and not env.get("HAVE_QT", 0) :
 		print "Error: Swift requires Qt. Not building Swift."
 		env["PROJECTS"].remove("Swift")
-- 
cgit v0.10.2-6-g49f6