Skip to content

Commit

Permalink
itk: fix contradictory ITK_USE_SYSTEM_EIGEN cmake flags
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdarwin committed Dec 21, 2024
1 parent 35fffcd commit f0cae1e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkgs/development/libraries/itk/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ stdenv.mkDerivation {
"-DBUILD_SHARED_LIBS=ON"
"-DITK_FORBID_DOWNLOADS=ON"
"-DITK_USE_SYSTEM_LIBRARIES=ON" # finds common libraries e.g. hdf5, libpng, libtiff, zlib, but not GDCM, NIFTI, MINC, etc.
"-DITK_USE_SYSTEM_EIGEN=ON"
"-DITK_USE_SYSTEM_EIGEN=OFF"
(lib.cmakeBool "ITK_USE_SYSTEM_EIGEN" (lib.versionAtLeast version "5.4"))
"-DITK_USE_SYSTEM_GOOGLETEST=OFF" # ANTs build failure due to https://github.com/ANTsX/ANTs/issues/1489
"-DITK_USE_SYSTEM_GDCM=ON"
"-DITK_USE_SYSTEM_MINC=ON"
Expand Down Expand Up @@ -152,10 +151,10 @@ stdenv.mkDerivation {

buildInputs =
[
eigen
libX11
libuuid
]
++ lib.optionals (lib.versionAtLeast version "5.4") [ eigen ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ]
++ lib.optionals enablePython [ python ]
++ lib.optionals withVtk [ vtk ];
Expand Down

0 comments on commit f0cae1e

Please sign in to comment.