Stop building tests when disabled
authorscantor <scantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Mon, 12 Sep 2011 17:08:08 +0000 (17:08 +0000)
committerscantor <scantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Mon, 12 Sep 2011 17:08:08 +0000 (17:08 +0000)
git-svn-id: https://svn.shibboleth.net/cpp-xmltooling/branches/REL_1@906 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltoolingtest/Makefile.am

index 8e56618..9ad2b45 100644 (file)
@@ -49,9 +49,10 @@ noinst_HEADERS = \
 
 nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp)
 
+if BUILD_UNITTEST
 BUILT_SOURCES = $(nodist_xmltoolingtest_SOURCES)
-
 CLEANFILES = $(nodist_xmltoolingtest_SOURCES)
+endif
 
 do-cxxtestgen:
        if test "$(CPPFILE)" = "xmltoolingtest.cpp"; then \