Skip to content

Commit

Permalink
use conda prefix to set cmake paths if conda is present
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpvandermause committed Oct 26, 2024
1 parent 9f275ca commit ed60c96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit ed60c96

Please sign in to comment.