diff --git a/indra/test/CMakeLists.txt b/indra/test/CMakeLists.txt
index 48c15155a698b72bed05b48611db0a157f498f71..b7a39a745099428037a6cc2114e1e897d4ab4bd9 100644
--- a/indra/test/CMakeLists.txt
+++ b/indra/test/CMakeLists.txt
@@ -107,8 +107,8 @@ if (LL_TESTS)
       # executable. This SHOULD properly be "$<TARGET_FILE_DIR:lltest>/Resources",
       # but the CMake $<TARGET_FILE_DIR> generator expression isn't evaluated by
       # CREATE_LINK, so fudge it.
-      add_custom_command( TARGET tests_ok PRE_BUILD
-              COMMAND cmake -E create_symlink ${SHARED_LIB_STAGING_DIR} ${CMAKE_BINARY_DIR}/test/Resource
+      add_custom_command( TARGET lltest POST_BUILD
+              COMMAND cmake -E create_symlink ${SHARED_LIB_STAGING_DIR} ${CMAKE_BINARY_DIR}/test/Resources
               )
     endif()
 endif (LL_TESTS)