Skip to content

Commit b0a8a5f

Browse files
committed
Fix dev environment setting
1 parent be41624 commit b0a8a5f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ if(DEFINED ENV{CONDA_PREFIX})
1010
#TODO: Windows Conda environments are structured differently,
1111
# how unfortunate is this?
1212
list(APPEND CMAKE_PREFIX_PATH "$ENV{CONDA_PREFIX}/Library")
13+
# Specify where not to look !!! Needed to make sure it uses
14+
# Boost from conda and not from system.
15+
set(Boost_NO_SYSTEM_PATHS ON)
16+
set(BOOST_ROOT $ENV{CONDA_PREFIX})
1317
endif()
1418

1519
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

conda/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies:
88
- cmake
99
- boost
1010
- matplotlib-base
11+
- compilers
1112
- pip
1213
- pip:
1314
- -e '..[test,dev,doc]'

0 commit comments

Comments
 (0)