From 10242fc7bda98dbc60fc0d68125c79c48f4241f8 Mon Sep 17 00:00:00 2001 From: Joseph Eng Date: Thu, 28 Dec 2023 14:58:56 -0800 Subject: [PATCH] Replace source listing with cat of protobuf source --- wpimath/CMakeLists.txt | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/wpimath/CMakeLists.txt b/wpimath/CMakeLists.txt index 65318d8272a..e890fe9c70d 100644 --- a/wpimath/CMakeLists.txt +++ b/wpimath/CMakeLists.txt @@ -217,18 +217,11 @@ else() ) endif() -get_target_property(wpimath_sources wpimath SOURCES) -message("wpimath sources:") -foreach(wpimath_source ${wpimath_sources}) - message(" ${wpimath_source}") -endforeach() - -get_target_property(wpimath_interface_sources wpimath INTERFACE_SOURCES) -message("wpimath interface sources: '${wpimath_interface_sources}'") -message("wpimath interface sources:") -foreach(wpimath_interface_source ${wpimath_interface_sources}) - message(" ${wpimath_interface_source}") -endforeach() +add_custom_command( + TARGET wpimath + PRE_LINK + COMMAND cat ${CMAKE_CURRENT_BINARY_DIR}/protobuf/controller.pb.cc +) set_property(TARGET wpimath PROPERTY FOLDER "libraries") target_compile_definitions(wpimath PRIVATE WPILIB_EXPORTS)