From 43cac6eaa90897e50daf6105b19528b82bf776aa Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Tue, 10 Sep 2024 13:58:21 +0200 Subject: [PATCH] Fix the platform-detection condition in the PlatformGraphics module We cannot use the fancy options in PlatformGraphics since user projects lack of their evaluation in QtPlatformSupport.cmake. Use the explicit CMAKE_SYSTEM_NAME-based conditions instead. Those should work if respective CMAKE_SYSTEM_NAME is specified in the toolchain file. Amends 3322f585eb5ad11acc1f93ecaafb42e30e37b197 Change-Id: Ifb6ced360e8cade7315b2b238837578bfc9a1bc3 Reviewed-by: Kimmo Ollila Reviewed-by: Karim Pinter Reviewed-by: Joerg Bornemann --- cmake/platforms/FindPlatformGraphics.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/platforms/FindPlatformGraphics.cmake b/cmake/platforms/FindPlatformGraphics.cmake index 80ae2a320e3..af8d3341dbc 100644 --- a/cmake/platforms/FindPlatformGraphics.cmake +++ b/cmake/platforms/FindPlatformGraphics.cmake @@ -5,9 +5,9 @@ # PlatformGraphics # --------- -if(INTEGRITY) +if(CMAKE_SYSTEM_NAME STREQUAL "Integrity") set(platform Integrity) -elseif(VXWORKS) +elseif(CMAKE_SYSTEM_NAME STREQUAL "VxWorks") set(platform VxWorks) else() set(PlatformGraphics_FOUND FALSE)