diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2016-11-29 09:59:25 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-12-01 16:28:45 -0800 |
commit | 7e4d00518569b859678bf68fa2ebc1624a770c1f (patch) | |
tree | f757f0c773774e0f7058aa8650e45f28ea5d8246 /host/CMakeLists.txt | |
parent | a9dfc903fa3c141d58a2575898b47c9592d51e98 (diff) | |
download | uhd-7e4d00518569b859678bf68fa2ebc1624a770c1f.tar.gz uhd-7e4d00518569b859678bf68fa2ebc1624a770c1f.tar.bz2 uhd-7e4d00518569b859678bf68fa2ebc1624a770c1f.zip |
cmake: add -lthr linker flag and libc++ compiler flag to FreeBSD
Diffstat (limited to 'host/CMakeLists.txt')
-rw-r--r-- | host/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index a39318f0c..5810b1383 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -95,6 +95,10 @@ ELSE() SET(CMAKE_CXX_STANDARD 11) ENDIF() +IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") + SET(CMAKE_EXE_LINKER_FLAGS "-lthr ${CMAKE_EXE_LINKER_FLAGS}") + SET(CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}") +ENDIF() ######################################################################## # Packaging Variables |