summaryrefslogtreecommitdiffstats
path: root/cmake/FindGLESv2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindGLESv2.cmake')
-rw-r--r--cmake/FindGLESv2.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/FindGLESv2.cmake b/cmake/FindGLESv2.cmake
index 3ba7b85d68..e934170196 100644
--- a/cmake/FindGLESv2.cmake
+++ b/cmake/FindGLESv2.cmake
@@ -60,8 +60,7 @@ if(GLESv2_FOUND AND NOT TARGET GLESv2::GLESv2)
# For simulator_and_device builds we can't specify the full library path, because
# it's specific to either the device or the simulator. Resort to passing a link
# flag instead.
- set_target_properties(GLESv2::GLESv2 PROPERTIES
- INTERFACE_LINK_LIBRARIES "-framework OpenGLES")
+ target_link_libraries(GLESv2::GLESv2 INTERFACE "-framework OpenGLES")
endif()
else()
add_library(GLESv2::GLESv2 UNKNOWN IMPORTED)