From 78ed7116360402beb7afc94dd17a5371c085fb54 Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Thu, 19 Oct 2023 14:18:59 -0600 Subject: [PATCH] Update build instructions for a conda environment --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 98ba6ba..8c766f3 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ into an Anaconda distribution with ### Linux and macOS -To install the C BMI bindings from source with cmake, run +To install the C BMI bindings from source with CMake, run mkdir _build && cd _build cmake .. -DCMAKE_INSTALL_PREFIX= @@ -36,6 +36,8 @@ To install the C BMI bindings from source with cmake, run where `` is the base directory in which to install the bindings (`/usr/local` is the default). +When using a conda environment, +use the `$CONDA_PREFIX` environment variable. The installation will look like: @@ -54,7 +56,7 @@ An additional prerequisite is needed for Windows: * Microsoft Visual Studio 2017 or Microsoft Build Tools for Visual Studio 2017 -To configure and install the C BMI bindings from source with cmake, +To configure and install the C BMI bindings from source with CMake, run the following in a [Developer Command Prompt](https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs) mkdir _build && cd _build @@ -64,10 +66,10 @@ run the following in a [Developer Command Prompt](https://docs.microsoft.com/en- -DCMAKE_BUILD_TYPE=Release cmake --build . --target install --config Release -where `` is the base directory -in which to install the bindings (`"C:\Program Files (x86)"` is the default; -note that quotes and an absolute path are needed). - +where `` is the base directory in which to install the bindings. +The default is `"C:\Program Files (x86)"`. +Note that quotes and an absolute path are needed. +When using a conda environment, use `"%CONDA_PREFIX%\Library"`. ## Use