diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh index cf743335..f390c32f 100755 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -52,18 +52,21 @@ cd ../../.. cd modules/fit2x git switch master rm -rf build && mkdir build && cd build -cmake \ - -DCMAKE_INSTALL_PREFIX="$PREFIX" \ - -DCMAKE_PREFIX_PATH="$PREFIX" \ - -DBUILD_PYTHON_INTERFACE=ON \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="$SP_DIR" \ - -DCMAKE_SWIG_OUTDIR="$SP_DIR" \ - -DPython_ROOT_DIR="${PREFIX}/bin" \ - .. -make && make install +cmake -S .. -B . \ + -DCMAKE_CXX_COMPILER="${CXX}" \ + -DCMAKE_INSTALL_PREFIX="$PREFIX" \ + -DCMAKE_PREFIX_PATH="$PREFIX" \ + -DBUILD_PYTHON_INTERFACE=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="$SP_DIR" \ + -DCMAKE_SWIG_OUTDIR="$SP_DIR" \ + -DPYTHON_EXECUTABLE="${PYTHON}" \ + -DPython_ROOT_DIR="${PREFIX}/bin" \ + -G Ninja +ninja install -j ${CPU_COUNT} cd ../../.. + # Install main module ##################### # Compile cython code