summaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-01 12:11:38 -0700
committerJosh Blum <josh@joshknows.com>2010-10-01 12:11:38 -0700
commit3a1138bc4a8595c5ea95a10f5ffdf0cb6a326b08 (patch)
treea9de36cc361f48fff0ed7dbe81d5eaeb0439dd09 /host/lib
parent348b5b12ad9ec916c92d642bfb28e47264473535 (diff)
downloaduhd-3a1138bc4a8595c5ea95a10f5ffdf0cb6a326b08.tar.gz
uhd-3a1138bc4a8595c5ea95a10f5ffdf0cb6a326b08.tar.bz2
uhd-3a1138bc4a8595c5ea95a10f5ffdf0cb6a326b08.zip
uhd: print system info on library load
Diffstat (limited to 'host/lib')
-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
+ ;
+}