diff --git a/conda-recipes/smurff/build.sh b/conda-recipes/smurff/build.sh index 58761329..b63222cc 100644 --- a/conda-recipes/smurff/build.sh +++ b/conda-recipes/smurff/build.sh @@ -2,9 +2,9 @@ if [ "$blas_impl" == "mkl" ] then - SKBUILD_CMAKE_ARGS="-DENABLE_MKL=ON" + SKBUILD_CMAKE_ARGS="-DENABLE_MKL=ON -DENABLE_OPENBLAS=OFF" else - SKBUILD_CMAKE_ARGS="-DENABLE_OPENBLAS=ON" + SKBUILD_CMAKE_ARGS="-DENABLE_OPENBLAS=ON -DENABLE_MKL=OFF" fi echo "extra CMAKE_ARGS: $SKBUILD_CMAKE_ARGS" diff --git a/pyproject.toml b/pyproject.toml index 55cbc6ab..01dd3f1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,12 +15,6 @@ sdist.include = ["python/smurff/_version.py"] cmake.verbose = true logging.level = "INFO" -[tool.scikit-build.cmake.define] -ENABLE_BOOST = "OFF" -ENABLE_CMDLINE = "OFF" -ENABLE_TESTS = "OFF" -ENABLE_OPENBLAS = "ON" - [tool.setuptools_scm] # Section required write_to = "python/smurff/_version.py" @@ -79,6 +73,12 @@ test-command = 'pytest {project}/python/test' test-requires = 'parameterized pytest' build-verbosity = 3 +[tool.cibuildwheel.config-settings] +"cmake.define.ENABLE_OPENBLAS" = "ON" +"cmake.define.ENABLE_BOOST" = "OFF" +"cmake.define.ENABLE_CMDLINE" = "OFF" +"cmake.define.ENABLE_TEST" = "OFF" + [tool.cibuildwheel.macos] before-all = [ "brew install --formulae openblas eigen ci/highfive.rb",