1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 20:19:57 +00:00

Merge pull request #751 from swick/master

adjust FindMyGUI.cmake to correctly handle REQUIRED and QUIETLY
This commit is contained in:
scrawl 2015-09-09 14:44:43 +02:00
commit 84e1801bbc

View file

@ -146,11 +146,12 @@ IF (MYGUI_FOUND)
IF (NOT MYGUI_FIND_QUIETLY)
MESSAGE(STATUS "MyGUI version: ${MYGUI_VERSION}")
ENDIF (NOT MYGUI_FIND_QUIETLY)
ELSE (MYGUI_FOUND)
IF (MYGUI_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find MYGUI")
ENDIF (MYGUI_FIND_REQUIRED)
ENDIF (MYGUI_FOUND)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MyGUI DEFAULT_MSG
MYGUI_INCLUDE_DIRS
FREETYPE_LIBRARIES
MYGUI_LIBRARIES)
CMAKE_POLICY(POP)