From da3ffae3ee6bcf3c4df566cfb4e93483ac1b2d64 Mon Sep 17 00:00:00 2001 From: Rongrong Date: Mon, 17 Oct 2022 21:40:47 +0800 Subject: [PATCH] src/CMakeLists.txt: fix TERMIT_CFLAGS `LUA_INCLUDE_DIR` is incorrect, the correct one is `LUA_INCLUDEDIR`. Thus, "-I${LUA_INCLUDE_DIR}" will become "-I", suppressing the following argument. However, it can be simply dropped as d9731f1 has already included `LUA_CFLAGS` in `TERMIT_CFLAGS`. --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 457a13e..80c1f16 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -42,7 +42,7 @@ ENDIF(NOT LUA_FOUND) INCLUDE(Sources.cmake) -SET(TERMIT_CFLAGS "-I${LUA_INCLUDE_DIR}") +SET(TERMIT_CFLAGS "") IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") SET(TERMIT_CFLAGS "${TERMIT_CFLAGS} -I/usr/local/include") ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")