diff --git a/indra/integration_tests/llui_libtest/CMakeLists.txt b/indra/integration_tests/llui_libtest/CMakeLists.txt
index 71a47f1475a15fe785e02054b2b3bb2df1bf4c0b..7e90d376471276ef4d6434933a6d4cab681f498a 100644
--- a/indra/integration_tests/llui_libtest/CMakeLists.txt
+++ b/indra/integration_tests/llui_libtest/CMakeLists.txt
@@ -1,5 +1,7 @@
 # -*- cmake -*-
 
+if (VIEWER)
+
 project (llui_libtest)
 
 include(00-Common)
@@ -88,7 +90,6 @@ 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