Skip to content
Snippets Groups Projects
Verified Commit 707e3aa0 authored by Lars Bilke's avatar Lars Bilke
Browse files

[cpm] Add Boost as header-only.

parent e2971c9c
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,13 @@ CPMFindPackage( ...@@ -130,7 +130,13 @@ CPMFindPackage(
NAME Boost NAME Boost
GITHUB_REPOSITORY Orphis/boost-cmake GITHUB_REPOSITORY Orphis/boost-cmake
VERSION ${ogs.minimum_version.boost} VERSION ${ogs.minimum_version.boost}
DOWNLOAD_ONLY YES
) )
if(Boost_ADDED)
add_library(Boost::boost INTERFACE IMPORTED)
string(REPLACE "." "_" boost_version ${ogs.minimum_version.boost})
target_include_directories(Boost::boost SYSTEM INTERFACE ${Boost_SOURCE_DIR}/boost/boost_${boost_version})
endif()
if(OGS_USE_XDMF) if(OGS_USE_XDMF)
# ZLIB is a HDF5 dependency # ZLIB is a HDF5 dependency
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment