1
0

Added pthread as a link flag.

This commit is contained in:
tycho 2015-05-23 11:53:49 +01:00
parent 1577a080ee
commit 7a5c1d30f8

View File

@ -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")