summaryrefslogtreecommitdiffstats
path: root/cmake/FindGLESv2.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-06-30 13:56:54 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-07-01 10:03:38 +0200
commit868c7016e031b8a2b81c94cbfdaccf161ea9b549 (patch)
treebb5733482d2efc1a74b65ff8bb652f5dd610d9f9 /cmake/FindGLESv2.cmake
parent1685b0540d60bc124bdfcfebf46a4e7c71f5db87 (diff)
CMake: Use correct framework link flags in scripts and .pri files
target_link_libraries expects a quoted string like "-framework CoreFoundation" when linking frameworks and not 2 different arguments like "-framework" "CoreFoundation". Fix that in the FindWrapOpenGL and FindGLESv2 find modules. Make sure to not quote the framework link flags when generating .pri files even if there are spaces, otherwise building apps with qmake fails. Amends 7fcc9cf05500fd3a0a1ba5c2f90a8ad3bcd8e5b0 Amends 2ed63e587eefb246dba9e69aa01fdb2abb2def13 Amends 55a15a1c1b93d36d705fc69e44b5c806b807dd55 Amends 2a767ab4bb7de8c29d2a8365212244ed944e9aeb Task-number: QTBUG-85240 Change-Id: I66ba36760ad704d65e712072a528d9e25c336dfa Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
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)