Skip to content

Add Boost as a dependency #633

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

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
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 CMakeExt/Boost.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
find_package(Boost REQUIRED COMPONENTS
## If you need to link a boost library, add it below. For example:
# chrono
## will link boost_chrono for you and also add it as a dependency.
)
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ endif()

# Load build modules to locate libraries after environment setup
# has been loaded:
include(${CMAKE_SOURCE_DIR}/CMakeExt/Boost.cmake)
include(${CMAKE_SOURCE_DIR}/CMakeExt/MPI.cmake)
include(${CMAKE_SOURCE_DIR}/CMakeExt/PAPI.cmake)
include(${CMAKE_SOURCE_DIR}/CMakeExt/Hwloc.cmake)
Expand Down
9 changes: 9 additions & 0 deletions dash/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ if (ENABLE_SCALAPACK)
${SCALAPACK_LIBRARIES})
endif()
endif()
set (ADDITIONAL_INCLUDES ${ADDITIONAL_INCLUDES}
${Boost_INCLUDE_DIRS})
set (ADDITIONAL_LIBRARIES ${ADDITIONAL_LIBRARIES}
${Boost_LIBRARIES})

if (HAVE_STD_TRIVIALLY_COPYABLE)
set (ADDITIONAL_COMPILE_FLAGS
Expand Down Expand Up @@ -352,6 +356,11 @@ foreach (dart_variant ${DART_IMPLEMENTATIONS_LIST})
#cotire(${DASH_LIBRARY})
endif()

include_directories(${Boost_INCLUDE_DIR})
target_link_libraries(
${DASH_LIBRARY}
${Boost_LIBRARIES})

include_directories(
${ADDITIONAL_INCLUDES}
)
Expand Down