From 8040ba5b9534808fef19e17a3aef52ddd9a34482 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sun, 14 Jun 2020 21:50:35 +0200 Subject: [PATCH] Updated lua and sol2 --- ecs-lua/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ecs-lua/CMakeLists.txt b/ecs-lua/CMakeLists.txt index 3f11276..d67ec74 100644 --- a/ecs-lua/CMakeLists.txt +++ b/ecs-lua/CMakeLists.txt @@ -15,7 +15,7 @@ CPMAddPackage( CPMAddPackage( NAME lua GITHUB_REPOSITORY lua/lua - VERSION 5.2.3 + VERSION 5.3.5 DOWNLOAD_ONLY YES ) @@ -34,9 +34,16 @@ endif() CPMAddPackage( NAME sol2 GIT_REPOSITORY https://github.com/ThePhD/sol2 - VERSION 3.2.0 + VERSION 3.2.1 + DOWNLOAD_ONLY YES ) +if (sol2_ADDED) + add_library(sol2 INTERFACE IMPORTED) + target_include_directories(sol2 INTERFACE ${sol2_SOURCE_DIR}/single/include) + target_link_libraries(sol2 INTERFACE lua) +endif() + file(GLOB_RECURSE headers CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h") file(GLOB_RECURSE sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)