Closed jschueller closed 6 months ago
The same issue is solved slightly differently with a patch in MSYS2: https://github.com/msys2/MINGW-packages/blob/8ff52af093c2d67d665e147d79049819e902e2bb/mingw-w64-sundials/0003-sundials-use-default-installdirs.patch
But admittedly, I prefer your proposed change. Looks good to me. 👍
didnt know that omitting DESTINATION is equivalent, lets use new features when they are available (seems to be from cmake>=3.14 but sundials requires >=3.18 anyways)
This fixes dll search on conda where dlls are expected to be installed in prefix/bin (pretty standard layout) static or import libs still go to prefix/lib