changeset 30804:cf4701f36e35 stable

adjust compiler options for building mex files for tests * test/mex/module.mk (MKOCTFILECPPFLAGS, MKMEXFILECPPFLAGS): Add -I$(top_builddir) to the list. Use I$(top_builddir)/libinterp/corefcn instead of -Ilibinterp/corefcn.
author John W. Eaton <jwe@octave.org>
date Thu, 03 Mar 2022 13:22:36 -0500
parents e53ddadaf15e
children ffd60680fcb9
files test/mex/module.mk
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/mex/module.mk	Tue Mar 01 20:22:48 2022 +0100
+++ b/test/mex/module.mk	Thu Mar 03 13:22:36 2022 -0500
@@ -30,8 +30,9 @@
 
 ## And probably many others...
 MKOCTFILECPPFLAGS = \
+  -I$(top_builddir) \
   -I$(top_srcdir)/libinterp/corefcn \
-  -Ilibinterp/corefcn
+  -I$(top_builddir)/libinterp/corefcn
 MKOCTFILELDFLAGS = \
   -L$(top_builddir)/libinterp/.libs \
   -L$(top_builddir)/liboctave/.libs
@@ -41,8 +42,9 @@
   $(top_builddir)/src/mkoctfile $(MKOCTFILECPPFLAGS) $(MKOCTFILELDFLAGS)
 
 MKMEXFILECPPFLAGS = \
+  -I$(top_builddir) \
   -I$(top_srcdir)/libinterp/corefcn \
-  -Ilibinterp/corefcn
+  -I$(top_builddir)/libinterp/corefcn
 MKMEXFILELDFLAGS = \
   -L$(top_builddir)/libinterp/.libs \
   -L$(top_builddir)/liboctave/.libs