summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-06-05 13:36:52 +0200
committersfan5 <sfan5@live.de>2021-06-05 13:36:52 +0200
commit46f42e15c41cf4ab23c5ff4cd8a7d99d94d10d7b (patch)
treea6d5c8cd5d28cc809eb165374a566ea036afc18c /cmake
parent40acfc938ce2306dbf6704f8091a89817a73c71b (diff)
downloadminetest-46f42e15c41cf4ab23c5ff4cd8a7d99d94d10d7b.tar.gz
minetest-46f42e15c41cf4ab23c5ff4cd8a7d99d94d10d7b.tar.bz2
minetest-46f42e15c41cf4ab23c5ff4cd8a7d99d94d10d7b.zip
Fix check that given IRRLICHT_LIBRARY exists
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindIrrlicht.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/FindIrrlicht.cmake b/cmake/Modules/FindIrrlicht.cmake
index 058e93878..1e334652b 100644
--- a/cmake/Modules/FindIrrlicht.cmake
+++ b/cmake/Modules/FindIrrlicht.cmake
@@ -38,7 +38,7 @@ if(IRRLICHT_INCLUDE_DIR AND (NOT IS_DIRECTORY "${IRRLICHT_INCLUDE_DIR}" OR
endif()
if(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "Linux" OR APPLE)
# (only on systems where we're sure how a valid library looks like)
- if(IRRLICHT_LIBRARY AND (IS_DIRECTORY "${IRRLICHT_LIBRARY}" OR
+ if(IRRLICHT_LIBRARY AND (NOT EXISTS "${IRRLICHT_LIBRARY}" OR
NOT IRRLICHT_LIBRARY MATCHES "\\.(a|so|dylib|lib)([.0-9]+)?$"))
message(WARNING "IRRLICHT_LIBRARY was set to ${IRRLICHT_LIBRARY} "
"but is not a valid library file. The path will not be used.")