Added pthread as a link flag.
This commit is contained in:
parent
1577a080ee
commit
7a5c1d30f8
@ -80,8 +80,9 @@ macro(set_flags)
|
||||
|
||||
else()
|
||||
# Let gcc / clang know that we're compiling a multi-threaded app:
|
||||
if (UNIX)
|
||||
if (${UNIX})
|
||||
add_flags_cxx("-pthread")
|
||||
add_flags_lnk("-pthread")
|
||||
endif()
|
||||
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
|
Loading…
Reference in New Issue
Block a user