summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SetFlags.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index b26796522..54b40aabb 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -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")