From bc6b2bc17adef055e540ac607aa2ce10916449d1 Mon Sep 17 00:00:00 2001 From: Sruthik P Date: Wed, 3 May 2023 15:54:06 +0530 Subject: [PATCH] glslang: Do not link with pthread on QNX On QNX, pthread APIs are provided as part of libc and a separate pthread library does not exist. This change updates the makefile of glslang to not link with pthread on QNX, thereby enabling glslang to be built for QNX platforms. --- StandAlone/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StandAlone/CMakeLists.txt b/StandAlone/CMakeLists.txt index 8ddef104..ad831f7b 100644 --- a/StandAlone/CMakeLists.txt +++ b/StandAlone/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2020 The Khronos Group Inc. +# Copyright (C) 2020-2023 The Khronos Group Inc. # # All rights reserved. # @@ -65,7 +65,7 @@ endif() if(WIN32) set(LIBRARIES ${LIBRARIES} psapi) elseif(UNIX) - if(NOT ANDROID) + if(NOT ANDROID AND NOT QNX) set(LIBRARIES ${LIBRARIES} pthread) endif() endif()