summaryrefslogtreecommitdiffstats
path: root/host/lib/version.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-01 12:14:07 -0700
committerJosh Blum <josh@joshknows.com>2010-10-01 12:14:07 -0700
commita772f4536e46227df3301c637927c3fbfb69a08d (patch)
treee7072893c0a6bc11a72463a08dac616801bbaa44 /host/lib/version.cpp
parent67e302ee255922c021ce2c12efdbbaad46a787dc (diff)
parent3a1138bc4a8595c5ea95a10f5ffdf0cb6a326b08 (diff)
downloaduhd-a772f4536e46227df3301c637927c3fbfb69a08d.tar.gz
uhd-a772f4536e46227df3301c637927c3fbfb69a08d.tar.bz2
uhd-a772f4536e46227df3301c637927c3fbfb69a08d.zip
Merge branch 'next'
Diffstat (limited to 'host/lib/version.cpp')
-rw-r--r--host/lib/version.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/host/lib/version.cpp b/host/lib/version.cpp
index 5edbca09b..93fdecb1a 100644
--- a/host/lib/version.cpp
+++ b/host/lib/version.cpp
@@ -21,3 +21,17 @@
std::string uhd::get_version_string(void){
return UHD_VERSION_STRING;
}
+
+#include <uhd/utils/static.hpp>
+#include <boost/version.hpp>
+#include <iostream>
+
+UHD_STATIC_BLOCK(print_system_info){
+ std::cout
+ << BOOST_PLATFORM << "; "
+ << BOOST_COMPILER << "; "
+ << "Boost_" << BOOST_VERSION << "; "
+ << "UHD_" << uhd::get_version_string()
+ << std::endl << std::endl
+ ;
+}