0

CMakeLists.txt:

project(lua)

aux_source_directory(${LUA_SRC_DIR} LUA_SOURCES)

list(REMOVE_ITEM LUA_SOURCES ${LUA_SRC_DIR}/lua.c ${LUA_SRC_DIR}/luac.c)

add_definitions(-DBUILD_LUA_AS_DLL -DLUA_LIB)

add_library(lua SHARED ${LUA_SOURCES})

seems nothing wrong, why this happen?

fabian
  • 80,457
  • 12
  • 86
  • 114
  • It is unlikely that given code emits the error shown in the title. Please, add surround messages for the error message you get, so it will be clear which build step generates that message. – Tsyvarev Jul 25 '21 at 14:31
  • **Do not use `aux_source_directory`**. See [here](https://stackoverflow.com/a/65191951/2137996). – Alex Reinking Jul 27 '21 at 16:09

0 Answers0