Threading: Scrubbed usage of threading in libraries

Removed include for pthreads from libraries where it appears NOT to be
used.  Added ${CMAKE_THREAD_LIBS_INIT} to CMakeLists.txt for libraries
which appear to require threading.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2018-01-22 14:39:46 -08:00
parent 7422ec937c
commit f97a62b055
8 changed files with 5 additions and 8 deletions

View File

@ -3,5 +3,5 @@ if (MRAA_FIRMATA_FOUND)
set (libdescription "Curie IMU Sensor using Firmata")
set (module_src ${libname}.cpp)
set (module_hpp ${libname}.hpp)
upm_module_init (mraa)
upm_module_init(mraa ${CMAKE_THREAD_LIBS_INIT})
endif ()