]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - CMakeLists.txt
Use Irrlicht functions to query npot texture support
[dragonfireclient.git] / CMakeLists.txt
index e4bda3afbec8a990314a33c3ff6455aff3308141..1f90847eaa3cb070de9bf58a1e69cf6c5b0eeb99 100644 (file)
@@ -60,9 +60,9 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
 # This is done here so that relative search paths are more reasonable
 find_package(Irrlicht)
 if(BUILD_CLIENT AND NOT IRRLICHT_FOUND)
-       message(FATAL_ERROR "Irrlicht is required to build the client, but it was not found.")
-elseif(IRRLICHT_INCLUDE_DIR STREQUAL "")
-       message(FATAL_ERROR "Irrlicht headers are required to build the server, but none found.")
+       message(FATAL_ERROR "IrrlichtMt is required to build the client, but it was not found.")
+elseif(NOT IRRLICHT_INCLUDE_DIR)
+       message(FATAL_ERROR "Irrlicht or IrrlichtMt headers are required to build the server, but none found.")
 endif()
 
 include(CheckSymbolExists)
@@ -71,7 +71,7 @@ unset(HAS_FORKED_IRRLICHT CACHE)
 check_symbol_exists(IRRLICHT_VERSION_MT "IrrCompileConfig.h" HAS_FORKED_IRRLICHT)
 if(NOT HAS_FORKED_IRRLICHT)
        string(CONCAT EXPLANATION_MSG
-               "Irrlicht found, but it is not Minetest's Irrlicht fork. "
+               "Irrlicht found, but it is not IrrlichtMt (Minetest's Irrlicht fork). "
                "The Minetest team has forked Irrlicht to make their own customizations. "
                "It can be found here: https://github.com/minetest/irrlicht")
        if(BUILD_CLIENT)