]> git.draconx.ca Git - upkg.git/commitdiff
Fix VPATH builds from clean checkout.
authorNick Bowler <nbowler@draconx.ca>
Fri, 31 Jan 2020 19:56:21 +0000 (14:56 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 31 Jan 2020 19:56:21 +0000 (14:56 -0500)
When doing a VPATH build from a fully clean checkout, the GOB outputs
end up in the build directory.  When this happens, #include "pcx.h"
won't find the header because this header is in srcdir.

The solution is to make sure we always #include relative to the top
src/ directory, which is already explicitly added to the compiler
search path.

src/engine/texture.gob

index 981c89891ab25b499e354a58b4391086e4de828b..630013e0f21031e3a45839715e4ed1f515759d50 100644 (file)
@@ -25,8 +25,8 @@
 #include <uobject/loadable.h>
 #include <uobject/exportable.h>
 #include <engine/palette.h>
-#include "pack.h"
-#include "pcx.h"
+#include <engine/pcx.h>
+#include <pack.h>
 %}
 
 %h{