Fixes allowing a custom install prefix.
@@ -31,6 +31,10 @@ CMAKE_OPTIONS += \
-DLUA_COMPAT53_DIR=$(LUA_COMPAT53_DIR) \
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
+ifdef INSTALL_PREFIX
+CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX)
+endif
+
ifeq ($(MAKE),mingw32-make)
CMAKE_OPTIONS += -G"MinGW Makefiles"
LUV_EXT ?= .dll
