Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix boost library link issue when using static boost #8193

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/CMake/nativeLnx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ if (DEFINED ENV{XRT_BOOST_INSTALL})
set (Boost_LIBRARY_DIRS $ENV{XRT_BOOST_INSTALL}/lib)
endif()

# Targets linked with xrt static libraries on CentOS/RHEL somehow
# link with dynamic library of boost_system even when Boost_USE_STATIC_LIBS
# is set. So explicitly adding boost install path to linker search paths
link_directories($ENV{XRT_BOOST_INSTALL}/lib)

else()
find_package(Boost
REQUIRED COMPONENTS system filesystem program_options)
Expand Down
Loading