Open CJCombrink opened 2 years ago
I have tested with the master branch (commit 5333d3d12ffc21229ec4203a9ea1c7f68d82e57f (HEAD -> master, origin/master, origin/HEAD) and the issue is still there.
The patch above for property_tree.ipp does not work on the master branch but the issue is still present
I updated the issue after creation to remove an unrelated issue, will file a separate issue for that one.
Created: #589
I ran into this issue today as well.
dnf install boost169-devel
) (installs includes to /usr/include/boost169/ and libs to /usr/lib64/boost169/)-DBoost_INCLUDE_DIR=/usr/include/boost169 -DBoost_LIBRARY_DIR=/usr/lib64/boost169/
command line options (for use by host/cmake/Modules/UHDBoost.cmake).I made a similar-ish fix. Based on these docs: https://cmake.org/cmake/help/latest/module/CheckCXXSourceCompiles.html
I set CMAKE_REQUIRED_INCLUDES
.
Here's my diff (from master to my modified cmake file in 4.2.0.0 release).
$ diff -urN uhd/host/cmake/Modules/UHDAtomics.cmake uhd-4.2.0.0/host/cmake/Modules/UHDAtomics.cmake
--- uhd/host/cmake/Modules/UHDAtomics.cmake 2022-05-16 18:01:59.170208258 +0000
+++ uhd-4.2.0.0/host/cmake/Modules/UHDAtomics.cmake 2022-05-16 18:04:03.809489339 +0000
@@ -36,6 +36,7 @@
# Note: If we reach this, we have already checked for the existence of Boost,
# and Boost.Lockfree is a header-only library so no linker options required.
function(CHECK_WORKING_CXX_BOOST_ATOMICS varname)
+ list(APPEND CMAKE_REQUIRED_INCLUDES ${Boost_INCLUDE_DIRS})
CHECK_CXX_SOURCE_COMPILES("
#include <boost/lockfree/queue.hpp>
boost::lockfree::queue<int> queue(1);
Issue Description
CMake fails to run when using BOOST_ROOT instead of system root
Setup Details
Clean Debian 11 environment, like docker.
Expected Behavior
UHD Compiles and works
Actual Behaviour
CMake fails to configure uhd and build.
Steps to reproduce the problem
Error from CMAKE:
Additional Information
If I apply the following patch cmake works:
clean build folder and rerun cmake: