From eb460c30cef1aeb122c58ec6a5c3b6c595a91fbf Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 6 Mar 2014 20:42:47 +0100 Subject: [PATCH] Added missing link flags for threaded example. --- README.md | 1 + examples/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 63a71ddc..447976c4 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ The following dependencies are needed by the examples and test programs: - Added `glfwSetDropCallback` and `GLFWdropfun` for receiving dropped files - Bugfix: The debug context attribute was set from `GL_ARB_debug_output` even when a debug context had not been requested + - Bugfix: The particles example was not linked against the threading library - [Cocoa] Added `_GLFW_USE_RETINA` to control whether windows will use the full resolution on Retina displays - [Cocoa] Bugfix: Using a 1x1 cursor for hidden mode caused some screen diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index e0ea971b..deaa32f9 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -49,6 +49,8 @@ else() add_executable(wave WIN32 wave.c) endif() +target_link_libraries(particles ${CMAKE_THREAD_LIBS_INIT} ${RT_LIBRARY}) + if (MSVC) set(WINDOWS_BINARIES boing gears heightmap particles simple splitview wave)