Skip to content

Commit

Permalink
pixi: Use CXXFLAGS env variable instead of CMAKE_CXX_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Oct 15, 2024
1 parent 50f755f commit fe242f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ scripts = ["scripts/activation.sh"]
scripts = ["scripts/activation.bat"]

[tasks]
# We must avoid to set CMAKE_CXX_FLAGS because of WIN32
# https://discourse.cmake.org/t/strictly-appending-to-cmake-lang-flags/6478
configure = { cmd = [
"CXXFLAGS=$EIGENPY_CXX_FLAGS",
"cmake",
"-G",
"Ninja",
Expand All @@ -37,7 +40,6 @@ configure = { cmd = [
"-S",
".",
"-DCMAKE_BUILD_TYPE=$EIGENPY_BUILD_TYPE",
"-DCMAKE_CXX_FLAGS=$EIGENPY_CXX_FLAGS",
"-DGENERATE_PYTHON_STUBS=$EIGENPY_PYTHON_STUBS",
"-DBUILD_WITH_CHOLMOD_SUPPORT=$EIGENPY_CHOLMOD_SUPPORT",
"-DBUILD_WITH_ACCELERATE_SUPPORT=$EIGENPY_ACCELERATE_SUPPORT",
Expand Down

0 comments on commit fe242f7

Please sign in to comment.