nlopt: fixup cmake directories

This commit is contained in:
Aaron Andersen 2022-02-26 11:26:33 -05:00
parent 7aad9f3307
commit 3dafb71c9f

View file

@ -27,6 +27,11 @@ stdenv.mkDerivation rec {
"OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct"
];
postFixup = ''
substituteInPlace $out/lib/cmake/nlopt/NLoptLibraryDepends.cmake --replace \
'INTERFACE_INCLUDE_DIRECTORIES "''${_IMPORT_PREFIX}/' 'INTERFACE_INCLUDE_DIRECTORIES "'
'';
meta = {
homepage = "https://nlopt.readthedocs.io/en/latest/";
description = "Free open-source library for nonlinear optimization";