From cb767c7705affe224febf6c2792f63aa3e4e09ff Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 3 Sep 2020 11:25:54 -0500 Subject: [PATCH] cmake: Fix FindOpenGLES --- cmake/FindOpenGLES.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/FindOpenGLES.cmake b/cmake/FindOpenGLES.cmake index 38ed43231..fc8aeb56c 100644 --- a/cmake/FindOpenGLES.cmake +++ b/cmake/FindOpenGLES.cmake @@ -173,7 +173,9 @@ foreach(_comp IN LISTS OpenGLES_FIND_COMPONENTS) set(OpenGLES_${_comp}_FOUND FALSE) endif() endforeach() -list(REMOVE_DUPLICATES _gles_required_vars) +if(_gles_required_vars) + list(REMOVE_DUPLICATES _gles_required_vars) +endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(