diff options
-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"), + ])) |