Stop building tests when disabled
authorScott Cantor <cantor.2@osu.edu>
Mon, 12 Sep 2011 17:08:08 +0000 (17:08 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 12 Sep 2011 17:08:08 +0000 (17:08 +0000)
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 \