Skip to content

Commit

Permalink
MPM: Fix version string for logger
Browse files Browse the repository at this point in the history
Added configuration of version.cpp file so @UHD_VERSION@ would be
properly replaced by the version string and @UHD_COMPONENT@ would
be properly replaced by the component string.

Signed-off-by: michael-west <[email protected]>
  • Loading branch information
michael-west committed Sep 25, 2019
1 parent 4a23499 commit 4205fa1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mpm/lib/catalina/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ set (CMAKE_CATALINA_SOURCE_DIR
${UHD_HOST_ROOT}/lib/usrp/common
)

########################################################################
# Setup UHD_VERSION and UHD_COMPONENT for version.cpp
########################################################################
configure_file(
${UHD_HOST_ROOT}/include/uhd/version.hpp.in
${CMAKE_BINARY_DIR}/include/uhd/version.hpp
)
configure_file(
${UHD_HOST_ROOT}/lib/version.cpp
${CMAKE_BINARY_DIR}/lib/version.cpp
)

# TODO: Do something better than listing all the files individually
set(catalina_sources
Expand All @@ -34,7 +41,7 @@ set(catalina_sources
${UHD_HOST_ROOT}/lib/types/serial.cpp
${UHD_HOST_ROOT}/lib/property_tree.cpp
${UHD_HOST_ROOT}/lib/utils/log.cpp
${UHD_HOST_ROOT}/lib/version.cpp
${CMAKE_BINARY_DIR}/lib/version.cpp
)

USRP_PERIPHS_ADD_OBJECT(catalina ${catalina_sources})
Expand Down

0 comments on commit 4205fa1

Please sign in to comment.