diff options
author | Remko Tronçon <git@el-tramo.be> | 2013-04-19 17:40:24 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2013-04-19 17:40:24 (GMT) |
commit | 807de848578269f5fd868c78d17681959992e362 (patch) | |
tree | 2c5bb6df4c0e00e93fc359787e5f7de64be03eb3 | |
parent | b976c408389282ca330615d8246afd4be0ffb435 (diff) | |
download | swift-807de848578269f5fd868c78d17681959992e362.zip swift-807de848578269f5fd868c78d17681959992e362.tar.bz2 |
Fix compilation in non-test mode.
Change-Id: I1a905e2a3da50b1ddfff24bbea91fd6825332ea1
-rw-r--r-- | Swiften/IDN/SConscript | 11 |
1 files changed, 6 insertions, 5 deletions
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"), + ])) |