Skip to content

Commit

Permalink
Place Os::Test::File::SyntheticFileSystem under BUILD_TESTING con…
Browse files Browse the repository at this point in the history
…dition (#2993)
  • Loading branch information
pcrosemurgy authored Oct 29, 2024
1 parent 2674ec4 commit 6d42c26
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Os/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/Generic")
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/Linux")
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/Darwin")

set(SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/test/ut/file/SyntheticFileSystem.cpp"
)
set(MOD_DEPS config)
register_fprime_module(Os_Test_File_SyntheticFileSystem)

# Basic source files used in every OSAL layer. Contains common code and helpers.
set(SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/ValidateFileCommon.cpp"
Expand Down Expand Up @@ -127,3 +121,11 @@ set(UT_SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/test/ut/OsMutexBasicLockableTest.cpp"
)
register_fprime_ut()

if (BUILD_TESTING)
set(SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/test/ut/file/SyntheticFileSystem.cpp"
)
set(MOD_DEPS config)
register_fprime_module(Os_Test_File_SyntheticFileSystem)
endif()

0 comments on commit 6d42c26

Please sign in to comment.