Skip to content

Commit

Permalink
Allowing None implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Feb 8, 2024
1 parent eb1b486 commit 6003e49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Svc/CmdSequencer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ set(UT_SOURCE_FILES
set(UT_MOD_DEPS
Os_File_Posix
)
choose_fprime_implementation(Os/File Os_File_None)
register_fprime_ut()
1 change: 1 addition & 0 deletions Svc/PrmDb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ set(UT_SOURCE_FILES
set(UT_MOD_DEPS
Os_File_Test_Stub
)
choose_fprime_implementation(Os/File Os/File/None)
register_fprime_ut()

5 changes: 5 additions & 0 deletions cmake/implementation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ function(setup_executable_implementation IMPLEMENTATION MODULE)
endif ()
string(REPLACE ";" ", " POSSIBLE "${LOCAL_IMPLEMENTATIONS}")
message(FATAL_ERROR "An implementation of ${IMPLEMENTATION} is required. Choose from: ${POSSIBLE}")
elseif (IMPLEMENTOR STREQUAL "${IMPLEMENTATION}_None")
if (CMAKE_DEBUG_OUTPUT)
message(STATUS "[${MODULE}] Declining Implementation of ${IMPLEMENTATION}")
endif ()
return()
endif ()
if (CMAKE_DEBUG_OUTPUT)
message(STATUS "[${MODULE}] Using Implementation: ${IMPLEMENTOR} for ${IMPLEMENTATION}")
Expand Down

0 comments on commit 6003e49

Please sign in to comment.