summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-12-13 16:21:02 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2016-12-13 16:21:02 -0800
commit7bf326a6d3b15c78fa31406ae28c7e707d28badf (patch)
tree1370ec61820a32179873293f183154a361fb4432
parent0ec18440b11abe865f463474d99cf59be18b207f (diff)
parent043e9310bf35d9b31e304bc095b1f3d4004923b0 (diff)
Merge branch 'maint'
-rw-r--r--cmake/Modules/GrBoost.cmake19
-rw-r--r--gr-uhd/doc/uhd.dox8
2 files changed, 21 insertions, 6 deletions
diff --git a/cmake/Modules/GrBoost.cmake b/cmake/Modules/GrBoost.cmake
index 1cf8e65a11..39a78c5b86 100644
--- a/cmake/Modules/GrBoost.cmake
+++ b/cmake/Modules/GrBoost.cmake
@@ -39,9 +39,24 @@ if(UNIX AND NOT BOOST_ROOT AND EXISTS "/usr/lib64")
list(APPEND BOOST_LIBRARYDIR "/usr/lib64") #fedora 64-bit fix
endif(UNIX AND NOT BOOST_ROOT AND EXISTS "/usr/lib64")
-if(MSVC)
- set(BOOST_REQUIRED_COMPONENTS ${BOOST_REQUIRED_COMPONENTS} chrono)
+if(WIN32)
+ #The following libraries are either used indirectly,
+ #or conditionally within the various core components.
+ #We explicitly list the libraries here because they
+ #are either required in environments MSVC and MINGW
+ #or linked-in automatically via header inclusion.
+
+ #However, this is not robust; and its recommended that
+ #these libraries should be listed in the main components
+ #list once the minimum version of boost had been bumped
+ #to a version which always contains these components.
+ list(APPEND BOOST_REQUIRED_COMPONENTS
+ atomic
+ chrono
+ )
+endif(WIN32)
+if(MSVC)
if (NOT DEFINED BOOST_ALL_DYN_LINK)
set(BOOST_ALL_DYN_LINK TRUE)
endif()
diff --git a/gr-uhd/doc/uhd.dox b/gr-uhd/doc/uhd.dox
index 27a1475566..a3de8e3a24 100644
--- a/gr-uhd/doc/uhd.dox
+++ b/gr-uhd/doc/uhd.dox
@@ -57,8 +57,8 @@ which automatically sets the PMT types. Assume we only want to set the frequency
(i.e. the second channel). In this case, we must construct a dictionary:
\code{.cpp}
pmt::pmt_t command = pmt::make_dict();
-pmt::dict_add(command, pmt::mp("freq"), pmt::mp(1.1e9)); // Specify frequency
-pmt::dict_add(command, pmt::mp("chan"), pmt::mp(1)); // Specify channel
+command = pmt::dict_add(command, pmt::mp("freq"), pmt::mp(1.1e9)); // Specify frequency
+command = pmt::dict_add(command, pmt::mp("chan"), pmt::mp(1)); // Specify channel
// Now pass 'command' into the USRP block's command port
\endcode
@@ -72,8 +72,8 @@ The main difference is that we can add more properties to the same
command PMT, e.g. as such:
\code{.cpp}
// 'command' is the same PMT as in the previous example
-pmt::dict_add(command, pmt::mp("gain"), pmt::mp(23.0)); // Specify gain
-pmt::dict_add(command, pmt::mp("antenna"), pmt::mp("TX/RX")); // Switch antenna
+command = pmt::dict_add(command, pmt::mp("gain"), pmt::mp(23.0)); // Specify gain
+command = pmt::dict_add(command, pmt::mp("antenna"), pmt::mp("TX/RX")); // Switch antenna
// Now pass 'command' into the USRP block's command port
\endcode
When the USRP block interprets this command PMT, all properties will be