From a251ff4331eacbbffcf6cb856c63752f2ad83ebc Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Tue, 3 May 2016 21:48:28 -0700 Subject: [PATCH] add 'dl' target libs in cmake --- examples/OpenGLWindow/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/OpenGLWindow/CMakeLists.txt b/examples/OpenGLWindow/CMakeLists.txt index 1e95d87c6..f7f1db5ad 100644 --- a/examples/OpenGLWindow/CMakeLists.txt +++ b/examples/OpenGLWindow/CMakeLists.txt @@ -59,7 +59,7 @@ if (BUILD_SHARED_LIBS) else() set (CMAKE_THREAD_PREFER_PTHREAD TRUE) FIND_PACKAGE(Threads) - target_link_libraries(OpenGLWindow ${CMAKE_THREAD_LIBS_INIT}) + target_link_libraries(OpenGLWindow dl ${CMAKE_THREAD_LIBS_INIT}) endif() endif()