1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Simplify Irrlicht CMake for static linking

removes any dynamic linking capability, which will stop being possible soon anyway.
This commit is contained in:
sfan5
2024-04-06 12:53:24 +02:00
parent 8a5e49c856
commit b9adf244e5
7 changed files with 15 additions and 176 deletions

View File

@@ -94,10 +94,7 @@ endif()
if(TRUE)
message(STATUS "Using imported IrrlichtMt at subdirectory 'irr'")
if(BUILD_CLIENT)
# tell IrrlichtMt to create a static library
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared library" FORCE)
add_subdirectory(irr EXCLUDE_FROM_ALL)
unset(BUILD_SHARED_LIBS CACHE)
if(NOT TARGET IrrlichtMt)
message(FATAL_ERROR "IrrlichtMt project is missing a CMake target?!")