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)