aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2016-02-05 11:26:08 -0800
committerMartin Braun <martin.braun@ettus.com>2016-02-08 09:46:10 -0800
commit147f287c9b177918749f17dd1245be817553b821 (patch)
tree8ebe4f5387962688450e738daa0db99986fd02e9
parent5c97330f089c9311b07e73f5c9ec6fb512dcaf67 (diff)
downloaduhd-147f287c9b177918749f17dd1245be817553b821.tar.gz
uhd-147f287c9b177918749f17dd1245be817553b821.tar.bz2
uhd-147f287c9b177918749f17dd1245be817553b821.zip
cmake: fixed Boost.Thread check for MinGW
* MinGW builds check for libboost_thread_win32 instead of libboost_thread * Checks for other platforms unaffected
-rw-r--r--host/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index 6ac281ccc..8a3d661e5 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -1,5 +1,5 @@
#
-# Copyright 2010-2015 Ettus Research LLC
+# Copyright 2010-2016 Ettus Research LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -187,10 +187,14 @@ SET(BOOST_REQUIRED_COMPONENTS
program_options
regex
system
- thread
unit_test_framework
serialization
)
+IF(MINGW)
+ LIST(APPEND BOOST_REQUIRED_COMPONENTS thread_win32)
+ELSE()
+ LIST(APPEND BOOST_REQUIRED_COMPONENTS thread)
+ENDIF()
IF(UNIX AND NOT BOOST_ROOT AND EXISTS "/usr/lib64")
LIST(APPEND BOOST_LIBRARYDIR "/usr/lib64") #fedora 64-bit fix