Explicity add test dependencies to Os_ut_exe (#2569)

This commit is contained in:
M Starch 2024-03-06 13:21:54 -05:00 committed by GitHub
parent a9989ceca6
commit c52f443e61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,7 +114,13 @@ set(UT_SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/test/ut/OsMutexBasicLockableTest.cpp"
)
register_fprime_ut()
if (BUILD_TESTING)
foreach (TEST IN ITEMS StubFileTest PosixFileTest)
if (TARGET "${TEST}")
add_dependencies("Os_ut_exe" "${TEST}")
endif()
endforeach()
endif()
# Second UT Pthreads
set(UT_SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/Pthreads/test/ut/BufferQueueTest.cpp"