From 95ff7e859d57829e428d41d7746e28c228b983ba Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Fri, 13 Jan 2017 14:10:39 -0800 Subject: cmake: add -lthr linker flag for FreeBSD executables --- host/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host') diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 1031ad272..5197f3a07 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -80,6 +80,9 @@ ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") ENDIF() ENDIF() +IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") + SET(CMAKE_EXE_LINKER_FLAGS "-lthr ${CMAKE_EXE_LINKER_FLAGS}") +ENDIF() ######################################################################## # Packaging Variables ######################################################################## -- cgit v1.2.3