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