Skip to content

Commit

Permalink
Make cmake produce the correct error if physfs is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion committed Sep 1, 2024
1 parent 890333e commit da5860d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmake/FindPhysFS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ ELSE (WIN32)
DOC "The PhysFS library")
ENDIF (WIN32)

IF (PHYSFS_INCLUDE_PATH)
SET( PHYSFS_FOUND 1 CACHE STRING "Set to 1 if PhysFS is found, 0 otherwise")
ELSE (GLEW_INCLUDE_PATH)
SET( PHYSFS_FOUND 0 CACHE STRING "Set to 1 if PhysFS is found, 0 otherwise")
ENDIF (PHYSFS_INCLUDE_PATH)
INCLUDE (FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS (PhysFS
DEFAULT_MSG
PHYSFS_INCLUDE_PATH
PHYSFS_LIBRARY
)

MARK_AS_ADVANCED( PHYSFS_FOUND PHYSFS_INCLUDE_PATH PHYSFS_LIBRARY )

Expand Down

0 comments on commit da5860d

Please sign in to comment.