Files
Erik Fröjdh 45d8648fdf conda recipe: restore full tool paths in CMAKE_ARGS (#1688)
gcc_linux-64 16.2.0 build 3 (conda-forge/ctng-compiler-activation-feedstock#209)
passes bare tool names such as -DCMAKE_AR=x86_64-conda-linux-gnu-ar. CMake
resolves the untyped value relative to SRC_DIR, so archiving the first static
library fails with 'ar: not found'. Prefix the names with BUILD_PREFIX/bin
again; values that are already absolute are left alone.
2026-11-17 17:29:33 +01:00

49 lines
1.1 KiB
YAML

source:
path: ../..
{% set version = load_file_regex(load_file = 'VERSION', regex_pattern = '(\d+(?:\.\d+)*(?:[\+\w\.]+))').group(1) %}
package:
name: slsdet
version: {{ version }}
build:
number: 0
script:
# gcc_linux-64 16.2.0 build 3 passes bare tool names in CMAKE_ARGS
# (-DCMAKE_AR=x86_64-conda-linux-gnu-ar), which CMake resolves relative to
# SRC_DIR. Restore the full paths; no-op when they are already absolute.
- 'export CMAKE_ARGS="${CMAKE_ARGS//=${HOST}-/=${BUILD_PREFIX}/bin/${HOST}-}"' # [not win]
- unset CMAKE_GENERATOR && {{ PYTHON }} -m pip install . -vv --config-settings=cmake.define.SLS_USE_SYSTEM_ZMQ=ON # [not win]
requirements:
build:
- python
- {{ compiler('c') }}
- {{ stdlib("c") }}
- {{ compiler('cxx') }}
host:
- cmake
- ninja
- python
- pip
- scikit-build-core
- pybind11 >=2.13.0
- fmt
- zeromq
- nlohmann_json
- catch2
run:
- python
- numpy
test:
imports:
- slsdet
about:
summary: An example project built with pybind11 and scikit-build.
# license_file: LICENSE