diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt
index 302470ce1b8134eceb6033349460f915fe805f20..ebc02b23577370d56445ab4a19a0f378ef8f175f 100644
--- a/indra/newview/CMakeLists.txt
+++ b/indra/newview/CMakeLists.txt
@@ -1229,7 +1229,7 @@ if (WINDOWS)
         )
 
     # sets the 'working directory' for debugging from visual studio.
-        if (NOT UNATTENDED)
+    if (NOT UNATTENDED)
         add_custom_command(
             TARGET secondlife-bin PRE_BUILD
             COMMAND ${CMAKE_SOURCE_DIR}/tools/vstool/vstool.exe
@@ -1241,7 +1241,7 @@ if (WINDOWS)
               ${CMAKE_CURRENT_SOURCE_DIR}
             COMMENT "Setting the secondlife-bin working directory for debugging."
             )
-        endif (NOT UNATTENDED)
+    endif (NOT UNATTENDED)
 
     add_custom_command(
         TARGET secondlife-bin PRE_BUILD