--- CMakeLists.txt.orig	2023-07-02 06:18:57
+++ CMakeLists.txt	2023-12-17 15:07:33
@@ -133,7 +133,7 @@
       if(NOT LUAJIT_INCLUDE_DIR)
         message( FATAL_ERROR "Failed to find LuaJIT headers. Variable `LUAJIT_INCLUDE_DIR' expected to be defined.")
       endif()
-      include_directories(${LUAJIT_INCLUDE_DIR})
+      include_directories(BEFORE ${LUAJIT_INCLUDE_DIR})
     else (USE_LUAJIT)
       # We only link the libs on Windows, so find_package fully succeeding
       # is only required on Windows
