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

Merge branch 'wheel-fix' into 'master'

[cmake] Build xdmf libs only when OGS_BUILD_TESTING=ON.

See merge request ogs/ogs!5124
parents eca5fa09 ba42034b
No related branches found
No related tags found
No related merge requests found
......@@ -205,11 +205,14 @@ set(BOOST_INCLUDE_LIBRARIES
if(GUIX_BUILD)
find_package(Boost REQUIRED)
else()
if(OGS_BUILD_WHEEL)
set(_boost_options "BUILD_SHARED_LIBS OFF")
endif()
CPMFindPackage(
NAME Boost
VERSION ${ogs.minimum_version.boost}
URL https://github.com/boostorg/boost/releases/download/boost-${ogs.minimum_version.boost}/boost-${ogs.minimum_version.boost}.tar.xz
OPTIONS "BOOST_ENABLE_CMAKE ON"
OPTIONS "BOOST_ENABLE_CMAKE ON" ${_boost_options}
)
endif()
if(NOT Boost_ADDED)
......@@ -403,7 +406,7 @@ if(OGS_USE_PETSC)
endif()
endif()
if((OGS_BUILD_TESTING OR OGS_BUILD_UTILS) AND NOT GUIX_BUILD)
if(OGS_BUILD_TESTING AND NOT GUIX_BUILD)
set(XDMF_LIBNAME OgsXdmf CACHE STRING "")
CPMAddPackage(
NAME xdmf
......
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