mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-03 10:26:29 +00:00
try fix cmake
This commit is contained in:
+1
-2
@@ -3,10 +3,9 @@ project(bomberman)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
|
||||
|
||||
find_package(Lua QUIET)
|
||||
if (NOT LUA_FOUND)
|
||||
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../lib/lua)
|
||||
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/lib/lua)
|
||||
find_package(Lua REQUIRED)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -40,18 +40,6 @@ This is because, the lua location is not standardized and may exist in
|
||||
locations other than lua/
|
||||
#]=======================================================================]
|
||||
|
||||
if (NOT LUA_FOUND)
|
||||
INCLUDE(FetchContent)
|
||||
|
||||
FetchContent_Declare(lua URL https://www.lua.org/ftp/lua-5.4.3.tar.gz)
|
||||
FetchContent_GetProperties(lua)
|
||||
if (NOT lua_POPULATED)
|
||||
SET(FETCHCONTENT_QUIET NO)
|
||||
FetchContent_Populate(lua)
|
||||
ADD_SUBDIRECTORY(${lua_SOURCE_DIR})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
cmake_policy(PUSH) # Policies apply to functions at definition-time
|
||||
cmake_policy(SET CMP0012 NEW) # For while(TRUE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user