From ed60c9609f5787ee7437026f2b62beb533bac23c Mon Sep 17 00:00:00 2001 From: Jonathan Vandermause Date: Sat, 26 Oct 2024 15:54:00 -0400 Subject: [PATCH] use conda prefix to set cmake paths if conda is present --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b46f58b..588697ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,6 +139,9 @@ endif() if(DEFINED ENV{CONDA_PREFIX}) message(STATUS "Adding conda include directories.") include_directories($ENV{CONDA_PREFIX}/include) + set(CMAKE_PREFIX_PATH "$ENV{CONDA_PREFIX}") + set(CMAKE_LIBRARY_PATH "$ENV{CONDA_PREFIX}/lib") + set(CMAKE_INCLUDE_PATH "$ENV{CONDA_PREFIX}/include") endif()