build: build only the compiler and drop the example project
The example duplicated what Demo already covers, and the run mode needs the runtime include path and Lua link flags at execution time, so they are baked in at configure time.
This commit is contained in:
8 files changed
+46
-126
No files matched your search
@@ -5,7 +5,6 @@ set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
# Reuse the compiler from the repository root as a subproject.
|
||||
set(LUACPP_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
||||
set(LUACPP_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/.." "${CMAKE_CURRENT_BINARY_DIR}/luacpp")
|
||||
include("${CMAKE_CURRENT_SOURCE_DIR}/../cmake/lua-package.cmake")
|
||||
|
||||
Reference in new issue
Block a user