Skip to content
Snippets Groups Projects
Commit 97326243 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Link with pthread on Linux

parent 553a97c8
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,10 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
endif()
endif()
if(NOT APPLE AND NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif()
#
# Declare source and header files.
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment