summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJosiahWI <41302989+JosiahWI@users.noreply.github.com>2021-10-31 17:33:11 -0500
committerGitHub <noreply@github.com>2021-10-31 22:33:11 +0000
commit38ba813c55489595cd78ab2f952be2e954083cfa (patch)
tree5f4cceb9e61f1caa0b07e8b57e653fa284b264b9 /README.md
parent0b95da7ad3f36ad49e3dfb9d7e919d5f9fc8f57a (diff)
downloadminetest-38ba813c55489595cd78ab2f952be2e954083cfa.tar.gz
minetest-38ba813c55489595cd78ab2f952be2e954083cfa.tar.bz2
minetest-38ba813c55489595cd78ab2f952be2e954083cfa.zip
Add variable to use existing IrrlichtMt build (#11656)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index 9322912cf..65dbd7e93 100644
--- a/README.md
+++ b/README.md
@@ -224,10 +224,13 @@ Run it:
- Debug build is slower, but gives much more useful output in a debugger.
- If you build a bare server you don't need to have the Irrlicht or IrrlichtMt library installed.
- In that case use `-DIRRLICHT_INCLUDE_DIR=/some/where/irrlicht/include`.
-- IrrlichtMt can also be installed somewhere that is not a standard install path.
- - In that case use `-DCMAKE_PREFIX_PATH=/path/to/install_prefix`
- - The path must be set so that `$(CMAKE_PREFIX_PATH)/lib/cmake/IrrlichtMt` exists
- or that `$(CMAKE_PREFIX_PATH)` is the path of an IrrlichtMt build folder.
+
+- Minetest will use the IrrlichtMt package that is found first, given by the following order:
+ 1. Specified `IRRLICHTMT_BUILD_DIR` CMake variable
+ 2. `${PROJECT_SOURCE_DIR}/lib/irrlichtmt` (if existent)
+ 3. Installation of IrrlichtMt in the system-specific library paths
+ 4. For server builds with disabled `BUILD_CLIENT` variable, the headers from `IRRLICHT_INCLUDE_DIR` will be used.
+ - NOTE: Changing the IrrlichtMt build directory (includes system installs) requires regenerating the CMake cache (`rm CMakeCache.txt`)
### CMake options