aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2017-01-13 14:10:39 -0800
committerMartin Braun <martin.braun@ettus.com>2017-01-13 16:11:11 -0800
commit95ff7e859d57829e428d41d7746e28c228b983ba (patch)
treef82bacea068a7d7aa5dce812dc7b1f090abdefc2
parent68d272d38b8e25126795a931c325bb5cba1a81e6 (diff)
downloaduhd-95ff7e859d57829e428d41d7746e28c228b983ba.tar.gz
uhd-95ff7e859d57829e428d41d7746e28c228b983ba.tar.bz2
uhd-95ff7e859d57829e428d41d7746e28c228b983ba.zip
cmake: add -lthr linker flag for FreeBSD executables
-rw-r--r--host/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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
########################################################################