From 7260fa20f9b2abd2003c13017136699952022410 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 28 Apr 2011 22:32:37 -0300 Subject: [PATCH] Fix compilation of unit tests on Linux with pthreads. --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2e4747b52..f1e6c91b8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -42,6 +42,10 @@ else() set(libs3rdparty ${libs3rdparty} libpng) endif() +if (CMAKE_USE_PTHREADS_INIT) + set(sys_libs ${sys_libs} ${CMAKE_THREAD_LIBS_INIT}) +endif() + # All libraries for .exe files set(all_libs aseprite-library undo-lib filters-lib gui-lib gfx-lib base-lib ${libs3rdparty} allegro ${sys_libs})