From 807de848578269f5fd868c78d17681959992e362 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Fri, 19 Apr 2013 19:40:24 +0200
Subject: Fix compilation in non-test mode.

Change-Id: I1a905e2a3da50b1ddfff24bbea91fd6825332ea1

diff --git a/Swiften/IDN/SConscript b/Swiften/IDN/SConscript
index 4f540cd..9d3b8f9 100644
--- a/Swiften/IDN/SConscript
+++ b/Swiften/IDN/SConscript
@@ -16,10 +16,11 @@ objects += myenv.SwiftenObject(["PlatformIDNConverter.cpp"])
 
 swiften_env.Append(SWIFTEN_OBJECTS = [objects])
 
-test_env = myenv.Clone()
-test_env.UseFlags(swiften_env["CPPUNIT_FLAGS"])
-env.Append(UNITTEST_OBJECTS = test_env.SwiftenObject([
-			File("UnitTest/IDNConverterTest.cpp"),
-]))
+if env["TEST"] :
+	test_env = myenv.Clone()
+	test_env.UseFlags(swiften_env["CPPUNIT_FLAGS"])
+	env.Append(UNITTEST_OBJECTS = test_env.SwiftenObject([
+				File("UnitTest/IDNConverterTest.cpp"),
+	]))
 
 
-- 
cgit v0.10.2-6-g49f6