osqp: fix cmake export

ref. https://github.com/osqp/osqp/pull/481
closes https://github.com/NixOS/nixpkgs/pull/235850
This commit is contained in:
Guilhem Saurel 2024-07-31 14:38:19 +02:00
parent 2064b01da3
commit af6c05456c

View File

@ -15,6 +15,14 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
# ref https://github.com/osqp/osqp/pull/481
# but this patch does not apply directly on v0.6.3
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
"$<INSTALL_PREFIX>/\''${CMAKE_INSTALL_INCLUDEDIR}" \
"\''${CMAKE_INSTALL_FULL_INCLUDEDIR}"
'';
nativeBuildInputs = [ cmake ];
meta = with lib; {