Build fixes (#1261)

* wheel is not universal

* use modern way of finding Python

* set policy needed for pybind 11, and up cmake required version
This commit is contained in:
Wolf Vollprecht 2021-11-10 14:51:54 +01:00 committed by GitHub
parent fa765e8e97
commit 1439f321c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 11 deletions

View File

@ -4,10 +4,8 @@
#
# The full license is in the file LICENSE, distributed with this software.
cmake_minimum_required (VERSION 3.2)
if(POLICY CMP0025)
cmake_policy(SET CMP0025 NEW)
endif()
cmake_minimum_required(VERSION 3.18.2)
cmake_policy(SET CMP0025 NEW)
cmake_policy(SET CMP0077 NEW)
project(libmamba)

View File

@ -3,15 +3,15 @@
# Distributed under the terms of the BSD 3-Clause License.
#
# The full license is in the file LICENSE, distributed with this software.
cmake_minimum_required(VERSION 3.18.2)
cmake_minimum_required (VERSION 3.2)
if(POLICY CMP0025)
cmake_policy(SET CMP0025 NEW)
endif()
cmake_policy(SET CMP0025 NEW)
cmake_policy(SET CMP0077 NEW)
cmake_policy(SET CMP0057 NEW)
project(libmambapy)
find_package(Python COMPONENTS Interpreter Development)
find_package(pybind11 REQUIRED)
if(NOT TARGET libmamba)
find_package(libmamba REQUIRED)

View File

@ -11,9 +11,6 @@ url = https://github.com/mamba-org/mamba
platforms = Windows, Linux, Mac OS X
keywords = mamba, libmamba, conda
[bdist_wheel]
universal = 1
[options]
include_package_data = True
packages = find: