From dd043d737fad64940ba84a30c8731bd489b084e6 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 11 Aug 2014 20:27:48 +0200 Subject: [PATCH] Use CMake threading variable for Wayland. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 115c30a5..a0173917 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -299,7 +299,7 @@ if (_GLFW_WAYLAND) set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} wayland-egl") list(APPEND glfw_INCLUDE_DIRS "${WAYLAND_INCLUDE_DIR}") - list(APPEND glfw_LIBRARIES "${WAYLAND_LIBRARIES}" -pthread) + list(APPEND glfw_LIBRARIES "${WAYLAND_LIBRARIES}" "${CMAKE_THREAD_LIBS_INIT}") find_package(XKBCommon REQUIRED) set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} xkbcommon")