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)