Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2019-04-23 12:02:57 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2019-04-23 12:02:57 +0300
commit0923bcec3481129e2073446e7c1877deb51d7ee6 (patch)
treebc90cddb6812ebfb2d1a8d00b45118b59d4e3a66 /CMakeLists.txt
parent55c07394e59183f7b45197b2f8ffcce1df9ef378 (diff)
Added explicit linkage of pthreads library (needed on raspberry PI)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9f869be44..3e59090e3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -139,6 +139,10 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
# Workaround for an old CMake, which does not understand CMAKE_CXX_STANDARD.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()
+
+ # Boost on Raspberry-Pi does not link to pthreads.
+ set(THREADS_PREFER_PTHREAD_FLAG ON)
+ find_package(Threads REQUIRED)
endif()
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUXX)