Skip to content

Commit

Permalink
Create empty library to avoid 3.16 limitations on interface libs
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Feb 6, 2025
1 parent 7447c5d commit 93f584e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Fw/Types/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ register_fprime_ut()
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/GTest")

# Create an empty interface library and use it to register an implementation
add_library(snprintf-format INTERFACE)
add_library(snprintf-format ${VALID_EMPTY})
register_fprime_implementation(Fw_StringFormat snprintf-format "${CMAKE_CURRENT_LIST_DIR}/snprintf_format.cpp")
1 change: 1 addition & 0 deletions cmake/module.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include_guard()
include(target/target)
include(implementation)
set(EMPTY "${FPRIME_FRAMEWORK_PATH}/cmake/empty.cpp")
set(VALID_EMPTY "${FPRIME_FRAMEWORK_PATH}/cmake/valid-empty.cpp")

####
# Function `generate_base_module_properties`:
Expand Down
1 change: 1 addition & 0 deletions cmake/valid-empty.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
static constexpr bool __INTENTIONALLY_UNUSED_SYMBOL__ = false;

0 comments on commit 93f584e

Please sign in to comment.