Skip to content

Commit

Permalink
added a fix for conda-forge
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelvinrr committed Nov 4, 2024
1 parent 8b5d5ab commit 8d496aa
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 @@ -11,6 +11,9 @@ set(CMAKE_CXX_STANDARD 20)

set(CMAKE_CXX_STANDARD_REQUIRED ON)

# to avoid complaints in conda-forge, see https://conda-forge.org/docs/maintainer/knowledge_base/#newer-c-features-with-old-sdk
set(CXXFLAGS, "${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY")

# Set up Anaconda prefix in the case with a non-default conda env is activated
if(EXISTS $ENV{CONDA_PREFIX})
message("CONDA PREFIX: $ENV{CONDA_PREFIX}")
Expand Down

0 comments on commit 8d496aa

Please sign in to comment.