Skip to content

Commit

Permalink
Merge branch 'fredboudon-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
pradal committed Jan 24, 2024
2 parents b1a5a04 + 2b1aa38 commit 4c8614e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/conda-package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@ on:
jobs:
build:
uses: openalea/github-action-conda-build/.github/workflows/conda-package-build.yml@main
with:
conda-channels: openalea3, conda-forge
secrets:
anaconda_token: ${{ secrets.ANACONDA_TOKEN }}
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ project(plantgl CXX)

# --- Build setup

set(CMAKE_INCLUDE_PATH "$ENV{CONDA_PREFIX}/include" ${CMAKE_INCLUDE_PATH})
set(CMAKE_LIBRARY_PATH "$ENV{CONDA_PREFIX}/lib" ${CMAKE_LIBRARY_PATH})
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
Expand Down
9 changes: 8 additions & 1 deletion cmake/Anaconda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ if (DEFINED ENV{CONDA_PREFIX})
# Anaconda Environment
message(STATUS "Anaconda environment detected: " $ENV{CONDA_PREFIX})


set(CMAKE_INCLUDE_PATH "$ENV{CONDA_PREFIX}/include" ${CMAKE_INCLUDE_PATH})
set(CMAKE_LIBRARY_PATH "$ENV{CONDA_PREFIX}/lib" ${CMAKE_LIBRARY_PATH})

if (DEFINED ENV{PREFIX})
file(TO_CMAKE_PATH $ENV{PREFIX} TMP_CONDA_ENV)
else()
Expand Down Expand Up @@ -55,6 +57,11 @@ if (DEFINED ENV{CONDA_BUILD})
if (APPLE)
list(APPEND CMAKE_FIND_ROOT_PATH $ENV{CONDA_BUILD_SYSROOT} )
endif()
if (WIN32)
list(APPEND CMAKE_FIND_ROOT_PATH $ENV{BUILD_PREFIX}/Library/usr $ENV{PREFIX}/Library/usr)
set(CMAKE_INCLUDE_PATH "$ENV{BUILD_PREFIX}/Library/usr/include" ${CMAKE_INCLUDE_PATH})
set(CMAKE_LIBRARY_PATH "$ENV{BUILD_PREFIX}/Library/usr/lib" ${CMAKE_LIBRARY_PATH})
endif()
if (UNIX)
# I add both old stype and new style cdts : https://github.com/conda-forge/cdt-builds#old-stylelegacy-vs-new-style-cdts
list(APPEND CMAKE_FIND_ROOT_PATH $ENV{BUILD_PREFIX}/x86_64-conda-linux-gnu/sysroot $ENV{BUILD_PREFIX}/$ENV{HOST}/sysroot )
Expand Down
8 changes: 1 addition & 7 deletions conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
numpy:
- 1.22 # [win]
- 1.22 # [osx]
- 1.22 # [linux]
boost:
- 1.74 # [win]
- 1.78 # [osx]
- 1.78 # [linux]
- 1.84
cxx_compiler:
- gxx # [linux]
- clangxx # [osx]
Expand Down
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ requirements:
- cgal-cpp>=5.4
- qhull
- ann
- boost {{ boost }}
- boost {{ boost }}
- expat # [linux]
- libxcb # [linux]
- pthread-stubs # [linux]
Expand Down

0 comments on commit 4c8614e

Please sign in to comment.