diff --git a/indra/llwindow/CMakeLists.txt b/indra/llwindow/CMakeLists.txt
index d09e5387b92e160692a8faa6801852e27b8762b9..cc60625683bb82ef7fc0e84ea62e9e339628c7e3 100644
--- a/indra/llwindow/CMakeLists.txt
+++ b/indra/llwindow/CMakeLists.txt
@@ -56,15 +56,12 @@ set(llwindow_LINK_LIBRARIES
         llxml
 		ll::glh_linear
 		ll::glext
+        ll::uilibraries
+        ll::SDL
         )
 # Libraries on which this library depends, needed for Linux builds
 # Sort by high-level to low-level
 if (LINUX)
-  list( APPEND llwindow_LINK_LIBRARIES
-          ll::uilibraries
-          ll::SDL
-      )
-
   list(APPEND viewer_SOURCE_FILES 
        llkeyboardsdl.cpp 
        llwindowsdl.cpp
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt
index d392e43dc64278ad7e28750c739f1c0b0e9b66ee..a7cbf43d35f41e02e000854cf8cac07fdfdfed97 100644
--- a/indra/newview/CMakeLists.txt
+++ b/indra/newview/CMakeLists.txt
@@ -1886,7 +1886,6 @@ target_link_libraries(${VIEWER_BINARY_NAME}
         llcommon
         llmeshoptimizer
         ll::ndof
-        ll::uilibraries
         lllogin
         llprimitive
         llappearance