diff --git a/indra/integration_tests/llui_libtest/CMakeLists.txt b/indra/integration_tests/llui_libtest/CMakeLists.txt
index 68556ac4ab4e771c37891c02dcfd698762e842ad..88564c60853cb4c17919541105ca46b5ba49ea38 100644
--- a/indra/integration_tests/llui_libtest/CMakeLists.txt
+++ b/indra/integration_tests/llui_libtest/CMakeLists.txt
@@ -1,5 +1,9 @@
 # -*- cmake -*-
 
+# Only set this up for viewer builds, because the llui library is most closely
+# related to the viewer
+if (VIEWER)
+
 project (llui_libtest)
 
 include(00-Common)
@@ -89,9 +93,9 @@ if (WINDOWS)
         )
 endif (WINDOWS)
 
-if (VIEWER)
-    # Ensure people working on the viewer don't break this library
-    # *NOTE: This could be removed, or only built by Parabuild, if the build
-    # and link times become too long. JC
-    add_dependencies(viewer llui_libtest)
+# Ensure people working on the viewer don't break this library
+# *NOTE: This could be removed, or only built by Parabuild, if the build
+# and link times become too long. JC
+add_dependencies(viewer llui_libtest)
+
 endif (VIEWER)