opensles detection: fail required but not found

This commit is contained in:
Bernhard Miklautz 2013-10-01 23:21:35 +02:00
parent d7a9add3b4
commit a5dca8b446

View File

@ -28,7 +28,10 @@ find_package_handle_standard_args(OPENSLES DEFAULT_MSG
if(OPENSLES_FOUND)
set(OPENSLES_LIBRARIES ${OPENSLES_LIBRARY})
else(OPENSLES_FOUND)
set(OPENSLES_LIBRARIES)
message("${OPENSLES_FIND_REQUIRED}")
if (OpenSLES_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find OPENSLES")
endif()
endif(OPENSLES_FOUND)
mark_as_advanced(OPENSLES_INCLUDE_DIR OPENSLES_LIBRARY)