forked from mirror/openmw-tes3mp
adjust FindMyGUI.cmake to correctly handle REQUIRED and QUIETLY
This commit is contained in:
parent
acbea2461b
commit
b68f64ed97
1 changed files with 6 additions and 5 deletions
|
@ -146,11 +146,12 @@ IF (MYGUI_FOUND)
|
||||||
IF (NOT MYGUI_FIND_QUIETLY)
|
IF (NOT MYGUI_FIND_QUIETLY)
|
||||||
MESSAGE(STATUS "MyGUI version: ${MYGUI_VERSION}")
|
MESSAGE(STATUS "MyGUI version: ${MYGUI_VERSION}")
|
||||||
ENDIF (NOT MYGUI_FIND_QUIETLY)
|
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)
|
ENDIF (MYGUI_FOUND)
|
||||||
|
|
||||||
|
include(FindPackageHandleStandardArgs)
|
||||||
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MyGUI DEFAULT_MSG
|
||||||
|
MYGUI_INCLUDE_DIRS
|
||||||
|
FREETYPE_LIBRARIES
|
||||||
|
MYGUI_LIBRARIES)
|
||||||
|
|
||||||
CMAKE_POLICY(POP)
|
CMAKE_POLICY(POP)
|
||||||
|
|
Loading…
Reference in a new issue