Skip to content
Permalink
Browse files
Fix check that given IRRLICHT_LIBRARY exists
  • Loading branch information
sfan5 committed Jun 5, 2021
1 parent 40acfc9 commit 46f42e15c41cf4ab23c5ff4cd8a7d99d94d10d7b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.")

0 comments on commit 46f42e1

Please sign in to comment.